/* Giriş sayfası · liquid glass. Sayfa kaymaz: her şey bir ekrana sığar. */
:root {
    --ink: #16202A;
    --ink-soft: #4F5A64;
    --muted: #8A929B;
    --brand-grad: linear-gradient(140deg, #24535C 0%, #12343B 55%, #0B262C 100%);
    --gold-grad: linear-gradient(135deg, #E6C76A 0%, #B8901E 60%, #8E6C12 100%);
    --brand: #12343B;
    --gold: #B8901E;
    --danger: #E0384B;
    --sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
    --serif: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; overflow: hidden; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: #F3EFE7;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Akışkan zemin ---------- */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(160deg, #F6F1E7 0%, #F3EFE7 50%, #EEE8DA 100%); }
.scene i {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: .5;
    animation: float 22s ease-in-out infinite alternate;
}
.scene i:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: radial-gradient(circle at 30% 30%, #3E7A84, #1F4F58 60%, transparent 70%); }
.scene i:nth-child(2) { width: 40vmax; height: 40vmax; right: -12vmax; top: -6vmax; background: radial-gradient(circle at 40% 40%, #F0D58A, #D9B54A 60%, transparent 70%); animation-duration: 28s; }
.scene i:nth-child(3) { width: 42vmax; height: 42vmax; right: -8vmax; bottom: -18vmax; background: radial-gradient(circle at 50% 50%, #5E9A9F, #2B6570 60%, transparent 70%); animation-duration: 25s; animation-direction: alternate-reverse; }
.scene i:nth-child(4) { width: 34vmax; height: 34vmax; left: -6vmax; bottom: -14vmax; background: radial-gradient(circle at 50% 50%, #F2CDB2, #E3A988 60%, transparent 70%); animation-duration: 31s; }
@keyframes float {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(4vmax, 3vmax, 0) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) { .scene i { animation: none; } }

/* ---------- Dil seçici: küçük cam hap ---------- */
.lang {
    position: fixed;
    top: clamp(12px, 2.4vh, 22px);
    right: clamp(12px, 2.4vw, 28px);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: inset 0 1px 0 #fff, 0 6px 18px -8px rgba(40, 50, 120, .35);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    font-size: 12px;
    font-weight: 700;
}
.lang span { display: none; }
.lang a { padding: 5px 11px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; }
.lang a.is-active { color: #fff; background: var(--brand-grad); }

/* ---------- Yerleşim ---------- */
.auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: center;
    gap: clamp(14px, 3vh, 30px);
    height: 100vh;
    height: 100dvh;
    padding: clamp(14px, 3vh, 32px) 16px;
}
@media (min-width: 960px) {
    .auth { grid-template-columns: minmax(0, 520px) 420px; justify-content: center; align-items: center; column-gap: clamp(40px, 6vw, 96px); }
    .hero { align-items: flex-start !important; text-align: left !important; }
}

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; }

.logo {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(44px, 6.4vh, 56px);
    height: clamp(44px, 6.4vh, 56px);
    border-radius: 18px;
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(22px, 3.2vh, 28px);
    font-style: italic;
    color: #1A1406;
    background: var(--gold-grad);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 30px -10px rgba(110, 84, 12, .7);
}
.logo__dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #12343B;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .5);
}
.logo-text { margin-top: 10px; font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--brand); }

.hero h1 {
    color: var(--brand) !important;
    margin: clamp(10px, 3vh, 32px) 0 clamp(10px, 2.4vh, 22px);
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(24px, 4.8vh, 50px);
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--ink);
}
.hero h1 em {
    font-style: italic;
    background: var(--gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.badge svg { width: 18px; height: 18px; color: var(--gold); }
.badge i { font-style: normal; color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; justify-content: inherit; gap: 8px 14px; margin: clamp(10px, 2vh, 18px) 0 0; padding: 0; list-style: none; }
.tags li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-grad); }
@media (max-height: 640px) and (max-width: 959px) { .tags, .badge { display: none; } }

/* ---------- Cam kart ---------- */
.card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: clamp(20px, 3.6vh, 34px) clamp(20px, 4vw, 32px);
    border-radius: 30px;
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .35), 0 30px 70px -20px rgba(40, 50, 130, .45);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    backdrop-filter: blur(30px) saturate(190%);
}
/* üst kenardaki ışık yansıması */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 38%);
    opacity: .55;
}
.card > * { position: relative; }
.card h2 { margin: 0 0 clamp(12px, 2.4vh, 22px); font-family: var(--serif); font-size: clamp(22px, 3.4vh, 28px); font-weight: 600; letter-spacing: -.01em; }

.alert {
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    color: #9B1C2C;
    background: rgba(224, 56, 75, .12);
    border: 1px solid rgba(224, 56, 75, .25);
}

.label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.label + .input, .pass { margin-bottom: clamp(10px, 2vh, 16px); }

.input {
    display: block;
    width: 100%;
    height: clamp(44px, 6vh, 52px);
    padding: 0 16px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(15, 27, 45, .1);
    border-radius: 16px;
    box-shadow: inset 0 1px 2px rgba(15, 27, 45, .05);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: var(--muted); }
.input:focus { background: rgba(255, 255, 255, .95); border-color: #B8901E; box-shadow: 0 0 0 4px rgba(217, 181, 74, .25); }

.pass { position: relative; }
.pass .input { padding-right: 52px; }
.pass__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}
.pass__toggle:hover, .pass__toggle.is-on { color: var(--gold); background: rgba(184, 144, 30, .12); }
.pass__toggle svg { width: 20px; height: 20px; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 clamp(14px, 2.6vh, 22px); font-size: 14px; }

.check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(15, 27, 45, .18);
    transition: background .15s, border-color .15s;
}
.check input:checked + .check__box { background: var(--brand-grad); border-color: transparent; }
.check input:checked + .check__box::after { content: ""; width: 9px; height: 5px; margin-top: -2px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(217, 181, 74, .25); }

.link { font-weight: 700; color: #6E540C; text-decoration: none; }
.link:hover { text-decoration: underline; }

.btn {
    width: 100%;
    height: clamp(46px, 6.4vh, 54px);
    border: 0;
    border-radius: 16px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--brand-grad);
    background-size: 140% 140%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 30px -10px rgba(11, 38, 44, .6);
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background-position .4s;
}
.btn:hover { background-position: 100% 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 18px 36px -10px rgba(11, 38, 44, .7); }
.btn:active { transform: translateY(1px) scale(.995); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .card { background: rgba(255, 255, 255, .9); }
}

/* Alçak ekranlar (yatay telefon): yalnız kart, sıkı aralıklar; sayfa kaymadan her şey görünsün */
@media (max-height: 560px) {
    .hero { display: none; }
    .auth { padding: 10px 16px; }
    .card { padding: 14px 20px; border-radius: 22px; }
    .card h2 { margin-bottom: 8px; font-size: 20px; }
    .label { margin-bottom: 3px; font-size: 12px; }
    .input { height: 38px; }
    .label + .input, .pass { margin-bottom: 8px; }
    .row { margin: 0 0 10px; }
    .btn { height: 40px; }
    .alert { margin-bottom: 8px; padding: 6px 10px; }
}
