*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #000;
    color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Shell ─── */
.ig-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #000;
}

.ig-layout {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 935px;
    margin: 0 auto;
    padding: 32px 20px 48px;
    gap: 0;
}

/* ─── Sol showcase (masaüstü) ─── */
.ig-showcase {
    display: none;
    flex: 1;
    max-width: 454px;
    min-height: 580px;
    position: relative;
    padding-top: 36px;
}

.ig-showcase__logo {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    line-height: 0;
}

.ig-showcase__title {
    margin: 0 0 24px;
    padding-top: 8px;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #f5f5f5;
    text-align: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.ig-showcase__gradient {
    background: linear-gradient(135deg, #ff6ec7 0%, #c850c0 40%, #4158d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

/* Stories kolaj */
.ig-stories {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 8px;
}

.ig-phone {
    position: absolute;
    width: 118px;
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

.ig-phone--left {
    left: 8%;
    top: 18%;
    transform: rotate(-8deg);
    z-index: 1;
    opacity: 0.92;
}

.ig-phone--center {
    left: 50%;
    top: 6%;
    width: 148px;
    height: 262px;
    transform: translateX(-50%);
    z-index: 3;
    border-radius: 16px;
}

.ig-phone--right {
    right: 6%;
    top: 22%;
    transform: rotate(10deg);
    z-index: 2;
    opacity: 0.9;
}

.ig-phone__bar {
    display: flex;
    gap: 4px;
    padding: 8px 10px 6px;
    position: relative;
    z-index: 2;
}

.ig-phone__bar span {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
}

.ig-phone__bar span:first-child {
    background: #fff;
}

.ig-phone__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.ig-phone__img--a {
    background-image: linear-gradient(160deg, #5b4a6f 0%, #2d2438 50%, #1a1520 100%);
}

.ig-phone__img--b {
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.35) 100%),
        url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=400&q=80");
}

.ig-phone__img--c {
    background-image: linear-gradient(200deg, #3d5a80 0%, #293241 60%, #1d2630 100%);
}

.ig-phone__heart {
    position: absolute;
    right: 12px;
    bottom: 14px;
    font-size: 1.25rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    z-index: 4;
}

.ig-phone__badge {
    position: absolute;
    left: 10px;
    bottom: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c853, #69f0ae);
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ig-stories__deco {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

.ig-stories__heart {
    left: 2%;
    top: 42%;
    transform: rotate(-12deg);
    filter: drop-shadow(0 4px 12px rgba(220, 39, 67, 0.4));
}

.ig-stories__bubble {
    right: 0;
    top: 8%;
    background: #fff;
    color: #000;
    padding: 10px 14px;
    border-radius: 22px;
    font-size: 1.35rem;
    display: flex;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transform: rotate(6deg);
}

.ig-stories__avatar {
    right: 18%;
    bottom: 8%;
}

.ig-stories__avatar-ring {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid transparent;
    background:
        linear-gradient(#000, #000) padding-box,
        linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.ig-stories__avatar-ring::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a7fdb, #9b7ed9);
}

/* ─── Sağ giriş ─── */
.ig-login {
    width: 100%;
    max-width: 350px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-login__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.ig-title {
    margin: 0 0 20px;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    color: #f5f5f5;
}

.ig-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ig-field {
    display: block;
    width: 100%;
}

.ig-field input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    font-size: 0.8125rem;
    color: #f5f5f5;
    background: #121212;
    border: 1px solid #363636;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s ease;
}

.ig-field input::placeholder {
    color: #a8a8a8;
    font-size: 0.75rem;
}

.ig-field input:focus {
    border-color: #525252;
}

.ig-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.ig-btn:active {
    opacity: 0.88;
}

.ig-btn--primary {
    margin-top: 6px;
    color: #fff;
    background: #0064e0;
}

.ig-btn--primary:hover {
    background: #1877f2;
}

.ig-btn--outline {
    color: #f5f5f5;
    background: transparent;
    border: 1px solid #363636;
}

.ig-btn--outline:hover {
    background: rgba(255, 255, 255, 0.04);
}

.ig-btn--fb {
    margin-top: 18px;
}

.ig-btn--signup {
    margin-top: 10px;
    color: #4a9eff;
    border-color: #4a9eff;
}

.ig-btn--signup:hover {
    background: rgba(74, 158, 255, 0.08);
}

.ig-fb-icon {
    flex-shrink: 0;
}

.ig-forgot {
    display: block;
    margin: 18px 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #f5f5f5;
    text-decoration: none;
    text-align: center;
}

.ig-forgot:hover {
    text-decoration: underline;
}

.ig-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 32px;
    color: #f5f5f5;
}

.ig-meta__text {
    font-size: 1rem;
    font-weight: 600;
}

/* ─── Footer ─── */
.ig-footer {
    width: 100%;
    padding: 0 20px 52px;
    margin-top: auto;
}

.ig-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    max-width: 100%;
    margin: 0 auto 16px;
}

.ig-footer__nav a {
    font-size: 0.75rem;
    color: #737373;
    text-decoration: none;
    line-height: 1.35;
    white-space: nowrap;
}

.ig-footer__nav a:hover {
    text-decoration: underline;
}

.ig-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    font-size: 0.75rem;
    color: #737373;
}

.ig-footer__lang {
    background: none;
    border: none;
    color: #737373;
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
}

.ig-footer__lang:hover {
    color: #a8a8a8;
}

.ig-footer__copy {
    color: #737373;
}

/* ─── Masaüstü: iki sütun ─── */
@media (min-width: 876px) {
    .ig-showcase {
        display: block;
    }

    .ig-layout {
        gap: 32px;
        padding-top: 48px;
        padding-bottom: 0;
        align-items: flex-start;
    }

    .ig-login {
        margin-top: 48px;
        max-width: 350px;
    }

    .ig-title {
        text-align: left;
    }

    .ig-footer {
        padding-bottom: 40px;
    }

    .ig-footer__nav {
        max-width: 935px;
    }
}

/* ─── Mobil: tek sütun, logo üstte ─── */
@media (max-width: 875px) {
    .ig-layout {
        flex-direction: column;
        padding-top: 48px;
        max-width: 400px;
    }

    .ig-login {
        max-width: 100%;
    }

    .ig-title {
        text-align: center;
        font-size: 1.25rem;
        margin-bottom: 24px;
    }

    .ig-login__inner::before {
        content: "";
        display: block;
        width: 52px;
        height: 52px;
        margin: 0 auto 28px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' width='52' height='52'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='100%25' x2='100%25' y2='0%25'%3E%3Cstop offset='0%25' stop-color='%23FFDC80'/%3E%3Cstop offset='50%25' stop-color='%23E1306C'/%3E%3Cstop offset='100%25' stop-color='%23833AB4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='4' y='4' width='40' height='40' rx='10' fill='none' stroke='url(%23g)' stroke-width='3'/%3E%3Ccircle cx='24' cy='24' r='10' fill='none' stroke='url(%23g)' stroke-width='3'/%3E%3Ccircle cx='35' cy='13' r='2.5' fill='url(%23g)'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    .ig-meta {
        margin-top: 36px;
    }

    .ig-footer__nav a {
        white-space: normal;
    }
}

/* Geniş ekran */
@media (min-width: 1200px) {
    .ig-layout {
        max-width: 1000px;
        gap: 48px;
    }

    .ig-showcase {
        max-width: 480px;
    }

    .ig-showcase__title {
        font-size: 1.875rem;
    }
}
