/* Giriş sayfası — "hero" varyantı (şu an sadece login.php).
   Her seçici .auth-page--hero altında kapsanır; diğer auth sayfalarını (kayıt,
   şifre sıfırlama) etkilemez. */

.auth-page--hero {
    --hero-bg: #f7f5f1;
    --hero-blob-a: 201, 162, 39;
    --hero-blob-b: 236, 214, 168;
    --hero-card-shadow: 0 1px 1px rgba(29, 29, 31, 0.03), 0 24px 60px -20px rgba(29, 29, 31, 0.18), 0 32px 84px -32px rgba(201, 162, 39, 0.28);
    --hero-field-bg: rgba(120, 110, 90, 0.07);
    --hero-field-bg-focus: rgba(255, 255, 255, 0.9);
    --hero-gold-ink: #2a2205;
    --hero-faint: #9a9aa1;

    position: relative;
    background: var(--hero-bg);
    overflow-x: hidden;
}

:root[data-theme="dark"] .auth-page--hero {
    --hero-bg: #030303;
    --hero-blob-b: 120, 96, 40;
    --hero-card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 70px -20px rgba(0, 0, 0, 0.6), 0 34px 90px -32px rgba(201, 162, 39, 0.16);
    --hero-field-bg: rgba(255, 255, 255, 0.06);
    --hero-field-bg-focus: rgba(255, 255, 255, 0.09);
    --hero-gold-ink: #1c1704;
    --hero-faint: #7c7c82;
}

/* ---------- ambient background ---------- */
.auth-page--hero .ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-page--hero .ambient span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: hero-drift 50s ease-in-out infinite;
}

.auth-page--hero .ambient span:nth-child(1) {
    width: 46vmax;
    height: 46vmax;
    top: -18vmax;
    left: -14vmax;
    background: radial-gradient(circle, rgba(var(--hero-blob-a), 0.30), transparent 70%);
}

.auth-page--hero .ambient span:nth-child(2) {
    width: 40vmax;
    height: 40vmax;
    bottom: -16vmax;
    right: -12vmax;
    background: radial-gradient(circle, rgba(var(--hero-blob-b), 0.30), transparent 70%);
    animation-delay: -20s;
    animation-duration: 60s;
}

.auth-page--hero .ambient span:nth-child(3) {
    width: 26vmax;
    height: 26vmax;
    top: 32%;
    left: 42%;
    background: radial-gradient(circle, rgba(var(--hero-blob-a), 0.16), transparent 72%);
    filter: blur(110px);
    animation-delay: -34s;
    animation-duration: 70s;
}

.auth-page--hero .ambient::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes hero-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(3%, 2%) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page--hero .ambient span { animation: none; }
}

/* ---------- shell ---------- */
.auth-page--hero .shell-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2.5rem;
}

/* Ev sayfasındaki .stage-entry ile aynı sahne tarifi (perde/kemer/spot/zemin) —
   giriş sayfası ana sayfadan geldiğinde aynı "mekana" adım atmış gibi hissettirsin. */
.auth-page--hero .concert-scene {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 4.2;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.1rem;
    background: #060504;
    box-shadow: 0 20px 46px -22px rgba(0, 0, 0, 0.5);
    animation: hero-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-page--hero .scene-curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(1.1rem, 11%, 2.6rem);
    background: #2a080e;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.28) 0px,
        rgba(0, 0, 0, 0) 6px,
        rgba(255, 255, 255, 0.025) 12px,
        rgba(0, 0, 0, 0.22) 18px
    );
    z-index: 2;
}

.auth-page--hero .scene-curtain--left { left: 0; box-shadow: inset -12px 0 22px rgba(0, 0, 0, 0.65); }
.auth-page--hero .scene-curtain--right { right: 0; box-shadow: inset 12px 0 22px rgba(0, 0, 0, 0.65); }

.auth-page--hero .scene-arch {
    position: absolute;
    top: 0;
    left: 13%;
    right: 13%;
    bottom: 10%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-top: none;
    box-shadow: inset 0 0 34px rgba(0, 0, 0, 0.55), inset 0 -18px 26px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.auth-page--hero .scene-spot {
    position: absolute;
    top: -10%;
    left: 50%;
    width: 55%;
    height: 78%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 50% 58% at 50% 0%, rgba(255, 248, 235, 0.18) 0%, rgba(255, 230, 180, 0.06) 42%, transparent 74%);
    z-index: 1;
}

.auth-page--hero .scene-deck {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 13%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(8, 6, 5, 0.98) 100%), #14100d;
    z-index: 2;
}

.auth-page--hero .scene-deck::before {
    content: '';
    position: absolute;
    top: 0;
    left: 13%;
    right: 13%;
    height: 1px;
    background: rgba(184, 149, 74, 0.35);
}

.auth-page--hero .scene-shadow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 60% at 50% 42%, transparent 35%, rgba(0, 0, 0, 0.68) 100%);
    z-index: 3;
}

.auth-page--hero .scene-spark {
    position: absolute;
    z-index: 1;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f0d78a;
    box-shadow: 0 0 6px 1px rgba(240, 215, 138, 0.6);
    animation: hero-twinkle 3.4s ease-in-out infinite;
}

@keyframes hero-twinkle {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.85; }
}

.auth-page--hero .brand-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.6rem;
    animation: hero-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.06s;
}

.auth-page--hero .brand-glyph {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: var(--primary-soft);
    margin-bottom: 0.9rem;
    flex-shrink: 0;
}

.auth-page--hero .brand-glyph span {
    display: block;
    width: 2.5px;
    border-radius: 2px;
    background: var(--primary);
}

.auth-page--hero .brand-glyph span:nth-child(1) { height: 10px; }
.auth-page--hero .brand-glyph span:nth-child(2) { height: 18px; }
.auth-page--hero .brand-glyph span:nth-child(3) { height: 13px; }
.auth-page--hero .brand-glyph span:nth-child(4) { height: 20px; }
.auth-page--hero .brand-glyph span:nth-child(5) { height: 8px; }

.auth-page--hero .brand-word a {
    font-size: 1.2rem;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

.auth-page--hero .brand-word span { color: var(--primary); }

/* ---------- value panel ---------- */
.auth-page--hero .value-panel {
    text-align: center;
}

.auth-page--hero .value-headline {
    font-size: clamp(1.5rem, 4vw, 1.7rem);
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0 0 0.5rem;
    text-wrap: balance;
    color: var(--text);
    animation: hero-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.12s;
}

.auth-page--hero .value-headline .accent {
    font-family: ui-serif, 'New York', 'Iowan Old Style', 'Palatino Linotype', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(100deg, var(--primary), #e8c765 60%, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-page--hero .live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
    margin-right: 0.5rem;
    vertical-align: middle;
    margin-top: -0.15em;
    animation: hero-pulse 2.2s ease-in-out infinite;
}

@keyframes hero-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18); }
    50% { opacity: 0.65; box-shadow: 0 0 0 6px rgba(201, 162, 39, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page--hero .live-dot { animation: none; }
}

.auth-page--hero .value-sub {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 34ch;
    margin: 0 auto;
    animation: hero-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.18s;
}

.auth-page--hero .feature-rows { display: none; }

.auth-page--hero .feature-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem 0.6rem;
    margin-top: 1.25rem;
    animation: hero-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.24s;
}

.auth-page--hero .feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    background: var(--primary-soft);
    border: 1px solid rgba(201, 162, 39, 0.18);
    padding: 0.4rem 0.75rem 0.4rem 0.6rem;
    border-radius: 999px;
}

.auth-page--hero .feature-chip svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

.auth-page--hero .auth-container {
    width: 100%;
    max-width: 396px;
    margin: 1.4rem auto 0;
    animation: hero-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.32s;
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page--hero .concert-scene,
    .auth-page--hero .scene-spark,
    .auth-page--hero .brand-mark,
    .auth-page--hero .value-headline,
    .auth-page--hero .value-sub,
    .auth-page--hero .feature-rows,
    .auth-page--hero .feature-chips,
    .auth-page--hero .auth-container {
        animation: none;
    }
}

/* ---------- mobile: form first, hero trimmed to a brand strip ----------
   Telefonda tam pazarlama bloğu (sahne animasyonu, başlık, chip'ler) formu
   ekran dışına itiyordu — kullanıcı giriş yapmak için önce kaydırmak zorunda
   kalıyordu. Küçük ekranlarda sadece marka + form görünür, geri kalan gizlenir. */
@media (max-width: 640px) {
    .auth-page--hero .concert-scene,
    .auth-page--hero .value-headline,
    .auth-page--hero .value-sub,
    .auth-page--hero .feature-chips {
        display: none;
    }

    .auth-page--hero .shell-grid {
        gap: 0;
    }

    .auth-page--hero .brand-mark {
        margin-bottom: 1.25rem;
    }

    .auth-page--hero .auth-container {
        margin-top: 0;
    }
}

/* ---------- desktop: two-column, value panel left / form right ---------- */
@media (min-width: 1024px) {
    .auth-page--hero .shell-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4.5rem;
    }

    .auth-page--hero .shell-grid::before {
        content: '';
        position: absolute;
        top: 6%;
        bottom: 6%;
        left: 50%;
        width: 1px;
        background: linear-gradient(180deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
    }

    .auth-page--hero .brand-mark,
    .auth-page--hero .value-panel {
        text-align: left;
        align-items: flex-start;
    }

    .auth-page--hero .value-sub { margin: 0; }
    .auth-page--hero .value-headline { font-size: clamp(2rem, 2.6vw, 2.5rem); }

    .auth-page--hero .concert-scene { aspect-ratio: 16 / 10; margin-bottom: 2rem; }

    .auth-page--hero .feature-chips { display: none; }

    .auth-page--hero .feature-rows {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        margin-top: 1.85rem;
        animation: hero-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
        animation-delay: 0.2s;
    }

    .auth-page--hero .feature-row {
        display: flex;
        align-items: flex-start;
        gap: 0.95rem;
    }

    .auth-page--hero .feature-icon {
        width: 38px;
        height: 38px;
        border-radius: 999px;
        background: linear-gradient(160deg, rgba(201, 162, 39, 0.20), rgba(201, 162, 39, 0.08));
        border: 1px solid rgba(201, 162, 39, 0.16);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .auth-page--hero .feature-icon svg { width: 18px; height: 18px; color: var(--primary); }

    .auth-page--hero .feature-text h3 {
        margin: 0 0 0.15rem;
        font-size: 0.95rem;
        font-weight: var(--fw-bold);
        letter-spacing: -0.005em;
        color: var(--text);
    }

    .auth-page--hero .feature-text p {
        margin: 0;
        font-size: 0.85rem;
        line-height: 1.45;
        color: var(--text-muted);
        max-width: 32ch;
    }

    .auth-page--hero .auth-container { margin: 0; }
}

/* ---------- card: crisp, not glass ---------- */
.auth-page--hero .auth-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.25rem 2.25rem;
    box-shadow: var(--hero-card-shadow);
    overflow: hidden;
    border: 1px solid transparent;
    background:
        linear-gradient(var(--surface), var(--surface)) padding-box,
        linear-gradient(150deg, rgba(201, 162, 39, 0.4), rgba(201, 162, 39, 0.05) 35%, var(--border) 100%) border-box;
}

.auth-page--hero .auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

:root[data-theme="dark"] .auth-page--hero .auth-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.auth-page--hero .auth-card h1 {
    font-size: 1.55rem;
    font-weight: var(--fw-bold);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.auth-page--hero .auth-subtitle {
    text-align: center;
    margin: 0 0 1.75rem;
}

.auth-page--hero .form-group input {
    background: var(--hero-field-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.8rem 0.95rem;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.auth-page--hero .form-group input::placeholder { color: var(--hero-faint); }

.auth-page--hero .form-group input:focus {
    outline: none;
    background: var(--hero-field-bg-focus);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.28);
}

.auth-page--hero .row-end { text-align: right; margin: -0.35rem 0 1.1rem; }
.auth-page--hero .row-end a {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}
.auth-page--hero .row-end a:hover { text-decoration: underline; }

.auth-page--hero .btn-primary {
    position: relative;
    width: 100%;
    min-height: 48px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.005em;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(180deg, #ddb94a, var(--primary) 70%);
    color: var(--hero-gold-ink);
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 10px 24px -8px rgba(201, 162, 39, 0.55);
    transition: filter 0.15s, transform 0.08s, box-shadow 0.2s;
}

.auth-page--hero .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
    pointer-events: none;
}

.auth-page--hero .btn-primary:hover { filter: brightness(1.04); }
.auth-page--hero .btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 4px 14px -6px rgba(201, 162, 39, 0.5);
}

.auth-page--hero .divider {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hero-faint);
}

.auth-page--hero .btn-google {
    background: transparent;
    border-radius: var(--radius-sm);
    transition: background 0.2s, border-color 0.2s;
}

.auth-page--hero .btn-google:hover { background: var(--hero-field-bg); }
