:root {
    --ink: #16202A;
    --ink-soft: #56606B;
    --brand: #12343B;
    --brand-hover: #0B262C;
    --gold: #B8901E;
    --line: #CFC8BC;
    --danger: #c0392b;
}

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

html, body {
    margin: 0;
    height: 100%;
    overflow: hidden; /* sayfa aşağı kaymaz */
}

body {
    font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: #f3d9cb;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Manzara ---------- */
.scene {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #b9a6c4;
    background-image:
        linear-gradient(180deg, rgba(245, 243, 238, .9) 0%, rgba(245, 243, 238, .55) 28%, rgba(245, 243, 238, 0) 52%),
        url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=2400&q=80&auto=format&fit=crop");
    background-size: cover;
    background-position: center 70%;
}

/* ---------- Dil seçici ---------- */
.lang {
    position: fixed;
    top: clamp(14px, 2.6vh, 24px);
    right: clamp(16px, 2.4vw, 32px);
    z-index: 2;
    display: flex;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-soft);
}
.lang a {
    padding-bottom: 3px;
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.lang a:hover { color: var(--ink); }
.lang a.is-active { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- Yerleşim ---------- */
.auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    height: 100dvh;
    padding: clamp(16px, 3vh, 32px) 16px clamp(16px, 4vh, 40px);
}

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

.logo {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(40px, 6vh, 48px);
    height: clamp(40px, 6vh, 48px);
    border-radius: 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-size: 22px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 8px 22px rgba(18, 52, 59, .3);
}
.logo__dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 2px var(--brand);
}
.logo-text {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
}

.hero h1 {
    margin: clamp(14px, 4vh, 40px) 0 clamp(12px, 2.6vh, 24px);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(26px, 4.6vh, 44px);
    line-height: 1.18;
    letter-spacing: -.4px;
    color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--brand); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(15px, 2.2vh, 18px);
    font-weight: 600;
    color: var(--ink);
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 8px 24px rgba(28, 34, 64, .12);
    backdrop-filter: blur(8px);
}
.badge i { color: var(--gold); font-weight: 500; }
.badge svg { width: 20px; height: 20px; color: var(--gold); }

.tags {
    display: flex;
    gap: 14px;
    margin: clamp(10px, 2.2vh, 20px) 0 0;
    padding: 6px 16px;
    list-style: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(6px);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
}
.tags li + li { padding-left: 14px; border-left: 1px solid rgba(28, 34, 64, .3); }

/* ---------- Kart ---------- */
.card {
    width: 100%;
    max-width: 380px;
    margin-top: clamp(16px, 4vh, 40px);
    padding: clamp(20px, 3.4vh, 30px) clamp(20px, 3vw, 28px);
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(246, 244, 250, .82));
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 24px 60px rgba(20, 27, 54, .28);
    backdrop-filter: blur(14px);
}

.card h2 {
    margin: 0 0 4px;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-size: clamp(22px, 3.4vh, 28px);
}
.card h2 + form,
.card h2 + .alert { margin-top: clamp(14px, 2.6vh, 22px); }
.card__sub { margin: 0 0 clamp(14px, 2.6vh, 24px); font-size: 13px; color: var(--ink-soft); }

.alert {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--danger);
    background: #fdf0ee;
    border: 1px solid #f5c6bf;
}

.label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
}

.input {
    display: block;
    width: 100%;
    height: clamp(40px, 5.6vh, 44px);
    margin-bottom: clamp(12px, 2.2vh, 18px);
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #a6aabd; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(18, 52, 59, .1); }

.pass { position: relative; }
.pass .input { padding-right: 44px; }
.pass__toggle {
    position: absolute;
    top: 0;
    right: 4px;
    display: grid;
    place-items: center;
    width: 36px;
    height: clamp(40px, 5.6vh, 44px);
    padding: 0;
    border: 0;
    color: #8a8fa6;
    background: transparent;
    cursor: pointer;
}
.pass__toggle svg { width: 18px; height: 18px; }
.pass__toggle:hover, .pass__toggle.is-on { color: var(--brand); }

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

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.check input { position: absolute; opacity: 0; }
.check__box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #b8bbcc;
    background: #fff;
    transition: all .15s;
}
.check input:checked + .check__box {
    border-color: var(--brand);
    background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(18, 52, 59, .2); }

.link { font-size: 12.5px; font-weight: 600; color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

.btn {
    width: 100%;
    height: clamp(42px, 5.8vh, 46px);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: translateY(1px); }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .hero h1 br { display: none; }
    .tags { font-size: 12px; gap: 10px; }
    .tags li + li { padding-left: 10px; }
    .card { border-radius: 16px; }
}

/* Kısa ekranlar: kaydırma yerine dekoratif öğeleri kıs */
@media (max-height: 760px) {
    .tags { display: none; }
}
@media (max-height: 640px) {
    .badge { display: none; }
    .logo-text { display: none; }
}
@media (max-height: 540px) {
    .hero h1 { display: none; }
}
