/* ==========================================================================
   Lactagro — public giriş kapısı + Login + Register.
   Bu üç ekranın TEK stil dosyası. Bilerek kendi kendine yeter: lactagro-ui.css
   (kullanıcı paneli) ve console.css (Web Admin) buraya karışmaz, buradaki
   değişiklikler de onlara sızmaz.

   Tek sabit koyu tema. Light tema / tema anahtarı YOKTUR — eklemeyin.
   İçerik minimum tutulur: tanıtım metni, özellik listesi, indirme bağlantısı
   bu ekranlara girmez. Kalite metinle değil kompozisyonla verilir.
   ========================================================================== */

/* ---------------------------------------------------------------- 1. Token */
:root {
    color-scheme: dark;

    /* Gerçek Lactagro marka renkleri (logodan) */
    --brand-green: #2F9540;
    --brand-green-400: #4fb862;
    --brand-green-300: #79d98a;
    --brand-blue: #005E9E;
    --brand-blue-300: #6cb8ea;

    /* Derin petrol–yeşil–siyah zemin */
    --ink: #04100c;
    --ink-2: #06170f;
    --surface: rgba(255, 255, 255, .034);
    --surface-2: rgba(255, 255, 255, .058);
    --surface-3: rgba(255, 255, 255, .085);
    --field: rgba(6, 24, 17, .58);

    --text: #eef7f1;
    --text-soft: #b9cfc2;
    --text-muted: #8aa598;

    --line: rgba(255, 255, 255, .10);
    --line-strong: rgba(255, 255, 255, .18);
    --ring: rgba(79, 184, 98, .45);

    --ok-bg: rgba(47, 149, 64, .14); --ok-fg: #8fe3a0; --ok-line: rgba(47, 149, 64, .38);
    --bad-bg: rgba(214, 76, 68, .14); --bad-fg: #f5a49e; --bad-line: rgba(214, 76, 68, .38);
    --info-bg: rgba(0, 94, 158, .18); --info-fg: #9ccdf0; --info-line: rgba(0, 94, 158, .42);

    --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-soft: cubic-bezier(.65, 0, .35, 1);
    --d1: .16s; --d2: .26s; --d3: .42s; --d4: .8s;

    --font: Inter, "Segoe UI", system-ui, -apple-system, Tahoma, sans-serif;
    --font-display: Sora, Inter, "Segoe UI", system-ui, sans-serif;

    --shadow-panel: 0 40px 90px -50px rgba(0, 0, 0, .9), 0 2px 0 rgba(255, 255, 255, .04) inset;
    --shadow-btn: 0 14px 34px -14px rgba(47, 149, 64, .75);
}

/* ----------------------------------------------------------------- 2. Baz */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
    -webkit-text-size-adjust: 100%;
    background: var(--ink);
    /* Dekoratif sabit katman kaydırma alanını hiçbir koşulda büyütmesin */
    overflow-x: hidden;
}

body {
    min-height: 100dvh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.03em;
}

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 8px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--brand-green); color: #fff; }

.sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
    position: fixed; top: 12px; left: 12px; z-index: 300;
    transform: translateY(-180%);
    padding: 10px 18px; border-radius: var(--r-sm);
    background: var(--brand-green); color: #fff; font-weight: 600;
    transition: transform var(--d2) var(--ease);
}
.skip:focus { transform: translateY(0); }

/* --------------------------------------------------------- 3. Ambient zemin */
/* Tek sabit dekoratif katman; sayfa boyunca sabit durur, yalnız transform ile
   hareket eder (kompozisyon boyama tetiklemez). */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.bg::before {
    /* derin petrol → siyah taban */
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(120% 85% at 50% -10%, #0a3330 0%, #061c17 45%, var(--ink) 100%),
        linear-gradient(180deg, #05130e 0%, #030c09 100%);
}

.bg__aurora {
    position: absolute; border-radius: 50%;
    filter: blur(110px);
    opacity: .75;
    will-change: transform;
}
.bg__aurora--a {
    width: 62vmax; height: 62vmax; top: -26vmax; left: -18vmax;
    background: radial-gradient(circle, rgba(47, 149, 64, .38) 0%, rgba(47, 149, 64, 0) 68%);
    animation: drift-a 34s var(--ease-soft) infinite alternate;
}
.bg__aurora--b {
    width: 56vmax; height: 56vmax; right: -22vmax; bottom: -24vmax;
    background: radial-gradient(circle, rgba(0, 94, 158, .40) 0%, rgba(0, 94, 158, 0) 68%);
    animation: drift-b 42s var(--ease-soft) infinite alternate;
}
.bg__aurora--c {
    width: 40vmax; height: 40vmax; left: 42%; top: 34%;
    background: radial-gradient(circle, rgba(23, 122, 118, .30) 0%, rgba(23, 122, 118, 0) 70%);
    animation: drift-c 50s var(--ease-soft) infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-7vmax, -5vmax, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(-5vmax, 4vmax, 0) scale(1.16); } }

/* Çok ince doku — düz gradyanın "plastik" görünmesini engeller */
.bg__grain {
    position: absolute; inset: -50%;
    opacity: .16;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.bg__vignette {
    position: absolute; inset: 0;
    background: radial-gradient(115% 80% at 50% 45%, transparent 42%, rgba(0, 0, 0, .55) 100%);
}

/* --------------------------------------------------------------- 4. Buton */
.btn {
    --bg: transparent; --fg: var(--text); --bd: transparent;
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 24px;
    border: 1px solid var(--bd); border-radius: var(--r-md);
    background: var(--bg); color: var(--fg);
    font-weight: 600; font-size: 15px; letter-spacing: -.01em;
    cursor: pointer; white-space: nowrap;
    transition: transform var(--d1) var(--ease), box-shadow var(--d2) var(--ease),
                background-color var(--d2) var(--ease), border-color var(--d2) var(--ease),
                color var(--d2) var(--ease), filter var(--d2) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn svg { flex: none; }

.btn--primary {
    --fg: #fff;
    background: linear-gradient(135deg, #34a247 0%, #217a35 48%, #0a5f7a 128%);
    box-shadow: var(--shadow-btn);
}
.btn--primary:hover { filter: brightness(1.08); box-shadow: 0 18px 42px -14px rgba(47, 149, 64, .9); }

.btn--ghost {
    --bg: var(--surface); --bd: var(--line-strong);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover { --bg: var(--surface-2); --bd: rgba(121, 217, 138, .55); }

.btn--bare { --fg: var(--text-soft); min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--bare:hover { --bg: var(--surface); color: var(--text); }

.btn--lg { min-height: 56px; padding: 0 32px; font-size: 16px; border-radius: 18px; }
.btn--block { width: 100%; }

/* Parlama — yalnız transform ile kayar */
.btn__shine {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
}
.btn__shine::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: translateX(-220%);
    transition: transform var(--d4) var(--ease);
}
.btn:hover .btn__shine::after { transform: translateX(320%); }

.btn.is-busy { pointer-events: none; color: transparent !important; }
.btn.is-busy::after {
    content: ""; position: absolute; width: 19px; height: 19px;
    border: 2px solid rgba(255, 255, 255, .85); border-top-color: transparent;
    border-radius: 50%; animation: spin .7s linear infinite;
}
.btn--ghost.is-busy::after, .btn--bare.is-busy::after { border-color: var(--text-soft); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- 5. Form */
.field { position: relative; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.field__opt { font-weight: 500; color: var(--text-muted); }

.input, .select {
    width: 100%; min-height: 50px; padding: 13px 15px;
    background: var(--field);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    color: var(--text); font-size: 15px;
    transition: border-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease),
                background-color var(--d2) var(--ease);
}
.input::placeholder { color: rgba(138, 165, 152, .75); }
.input:hover, .select:hover { border-color: rgba(255, 255, 255, .28); }
.input:focus, .select:focus {
    outline: none;
    border-color: var(--brand-green-400);
    background: rgba(9, 33, 23, .78);
    box-shadow: 0 0 0 4px rgba(79, 184, 98, .18);
}
.input:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px #0a2418 inset;
    caret-color: var(--text);
}

.select {
    appearance: none; cursor: pointer; padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238aa598' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center;
}
.select option { background: #0b1f16; color: var(--text); }

.field.has-error .input, .field.has-error .select {
    border-color: var(--bad-fg);
    box-shadow: 0 0 0 4px rgba(214, 76, 68, .16);
}
.field__err { font-size: 13px; font-weight: 500; color: var(--bad-fg); }
.field__err:empty { display: none; }

.field--pw .input { padding-right: 50px; }
.pw-toggle {
    position: absolute; right: 6px; top: 28px;
    width: 40px; height: 40px; display: grid; place-items: center;
    background: transparent; border: 0; border-radius: 10px;
    color: var(--text-muted); cursor: pointer;
    transition: color var(--d1) var(--ease), background-color var(--d1) var(--ease);
}
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }

.check {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 9px 11px; border-radius: 10px;
    font-size: 14px; color: var(--text-soft); cursor: pointer;
    transition: background-color var(--d1) var(--ease);
}
.check:hover { background: var(--surface); }
.check input[type="checkbox"] {
    appearance: none; flex: none; width: 20px; height: 20px; margin-top: 1px;
    border: 1.5px solid var(--line-strong); border-radius: 6px;
    background: var(--field); cursor: pointer;
    transition: background-color var(--d1) var(--ease), border-color var(--d1) var(--ease);
}
.check input[type="checkbox"]:checked {
    border-color: var(--brand-green);
    background: var(--brand-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Şifre gücü */
.strength { display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.strength__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength__bars i {
    height: 5px; border-radius: var(--r-pill); background: var(--surface-3);
    transition: background-color var(--d2) var(--ease);
}
.strength[data-level="1"] .strength__bars i:nth-child(-n+1) { background: #e2685f; }
.strength[data-level="2"] .strength__bars i:nth-child(-n+2) { background: #e0a63d; }
.strength[data-level="3"] .strength__bars i:nth-child(-n+3) { background: var(--brand-green-400); }
.strength[data-level="4"] .strength__bars i { background: var(--brand-green-300); }
.strength__label { font-size: 12.5px; color: var(--text-muted); }
.reqs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--text-muted); }
.reqs li { display: flex; align-items: center; gap: 6px; }
.reqs li::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--line-strong); transition: background-color var(--d2) var(--ease);
}
.reqs li.ok { color: var(--brand-green-300); }
.reqs li.ok::before { background: var(--brand-green-300); }

/* Mesaj */
.msg {
    padding: 12px 15px; border-radius: var(--r-sm);
    font-size: 14px; font-weight: 500;
    background: var(--info-bg); color: var(--info-fg); border: 1px solid var(--info-line);
    animation: msg-in var(--d2) var(--ease) both;
}
.msg:empty { display: none; }
.msg.ok { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
.msg.error { background: var(--bad-bg); color: var(--bad-fg); border-color: var(--bad-line); }
@keyframes msg-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------------------------------------------------------------- 6. Toast */
.toasts {
    position: fixed; z-index: 200; right: 20px; bottom: 20px;
    display: flex; flex-direction: column; gap: 10px;
    width: min(360px, calc(100vw - 40px));
}
.toast {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 14px 16px; border-radius: var(--r-md);
    background: rgba(10, 30, 22, .92);
    border: 1px solid var(--line-strong);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .95);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    font-size: 14.5px; color: var(--text);
    animation: toast-in var(--d3) var(--ease) both;
}
.toast.out { animation: toast-out var(--d2) var(--ease) both; }
.toast__icon { flex: none; margin-top: 1px; color: var(--info-fg); }
.toast.ok .toast__icon { color: var(--ok-fg); }
.toast.error .toast__icon { color: var(--bad-fg); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ============================================================== 7. GATE ==
   Public ilk ekran: logo + tek satır + iki eylem. Başka hiçbir şey.
   ======================================================================== */
.gate {
    position: relative; z-index: 1;
    min-height: 100dvh;
    display: grid; grid-template-rows: 1fr auto;
    transition: opacity var(--d3) var(--ease), transform var(--d3) var(--ease);
}
.gate.is-behind { opacity: 0; transform: scale(.985); pointer-events: none; }

.gate__inner {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    padding: clamp(32px, 7vh, 72px) 24px 16px;
    gap: clamp(22px, 4vh, 38px);
}

/* Logo — gerçek transparan Lactagro kilidi. Beyaz plaka YOK; okunabilirlik
   arkadaki ışık havuzu + drop-shadow ile sağlanır. */
.gate__logo { position: relative; display: grid; place-items: center; }
.gate__logo::before {
    content: ""; position: absolute;
    width: 150%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle,
        rgba(140, 235, 190, .17) 0%,
        rgba(80, 190, 220, .10) 38%,
        transparent 70%);
    filter: blur(10px);
    animation: halo 7s var(--ease-soft) infinite alternate;
}
@keyframes halo { to { transform: scale(1.09); opacity: .82; } }

.gate__logo img {
    position: relative;
    width: clamp(224px, 30vw, 372px);
    height: auto;
    filter: drop-shadow(0 18px 44px rgba(0, 0, 0, .7))
            drop-shadow(0 0 26px rgba(120, 210, 255, .20));
}

.gate__line {
    max-width: 46ch;
    text-wrap: balance;
    font-size: clamp(16px, 1.55vw, 19px);
    line-height: 1.55;
    font-weight: 450;
    color: var(--text-soft);
    letter-spacing: .002em;
}

.gate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.gate__actions .btn { min-width: 176px; }

.gate__foot {
    padding: 22px 24px calc(22px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 12.5px; letter-spacing: .04em;
    color: rgba(138, 165, 152, .72);
}

/* Giriş animasyonu — yalnız opacity/transform */
.rise { opacity: 0; transform: translateY(20px); }
.gate.is-ready .rise {
    animation: rise .82s var(--ease) both;
    animation-delay: var(--delay, 0s);
}
.gate.is-ready .gate__logo {
    animation: logo-in 1.05s var(--ease) both;
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes logo-in {
    from { opacity: 0; transform: translateY(18px) scale(.94); }
    to { opacity: 1; transform: none; }
}

/* ============================================================== 8. AUTH ==
   Login + Register aynı kabukta. Sol sütun yalnız dekoratif — pazarlama
   metni, özellik listesi, tanıtım BURAYA GİRMEZ.
   ======================================================================== */
.auth {
    position: fixed; inset: 0; z-index: 100;
    display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    opacity: 0; visibility: hidden;
    transition: opacity var(--d3) var(--ease), visibility var(--d3);
}
.auth.is-open { opacity: 1; visibility: visible; }

/* --- sol: dekoratif marka yüzeyi --- */
.auth__art {
    position: relative; overflow: hidden;
    display: grid; place-items: center;
    background:
        radial-gradient(90% 70% at 30% 15%, rgba(47, 149, 64, .30) 0%, transparent 62%),
        radial-gradient(80% 80% at 78% 88%, rgba(0, 94, 158, .34) 0%, transparent 64%),
        linear-gradient(158deg, #073229 0%, #05201a 52%, #030f0b 100%);
    border-right: 1px solid var(--line);
}
.auth__art::after {
    /* ince ışık çizgisi — yüzeyi cam gibi ayırır */
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .05) 50%, transparent 62%);
}
.auth__watermark {
    position: relative;
    width: min(58%, 340px);
    opacity: .5;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, .6))
            drop-shadow(0 0 30px rgba(120, 210, 255, .16));
    transform: translateY(10px);
    transition: opacity var(--d4) var(--ease), transform var(--d4) var(--ease);
}
.auth.is-open .auth__watermark { opacity: 1; transform: none; }

/* --- sağ: form sütunu --- */
.auth__col {
    position: relative;
    display: flex; flex-direction: column;
    min-height: 0;
    background: linear-gradient(180deg, rgba(4, 18, 13, .82) 0%, rgba(3, 12, 9, .92) 100%);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}

.auth__bar {
    flex: none;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 18px clamp(20px, 3.4vw, 44px);
    border-bottom: 1px solid var(--line);
}
.auth__brand { display: inline-flex; align-items: center; gap: 11px; }
.auth__brand img { width: 40px; height: auto; flex: none; }
.auth__brand span {
    font-family: var(--font-display); font-weight: 800;
    font-size: 18px; letter-spacing: -.035em;
}

.auth__scroll {
    flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(20px, 3.5vh, 40px) clamp(20px, 3.4vw, 44px) calc(40px + env(safe-area-inset-bottom));
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.auth__scroll::-webkit-scrollbar { width: 10px; }
.auth__scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .14); border-radius: 999px;
    border: 3px solid transparent; background-clip: content-box;
}

/* Uzun kayıt formu ortalanamaz — üstten hizala */
.auth__scroll.is-tall { justify-content: flex-start; }

.pane { width: 100%; max-width: 452px; margin: 0 auto; }
.pane--wide { max-width: 660px; }
.pane[hidden] { display: none; }
.pane.is-entering { animation: pane-in var(--d3) var(--ease) both; }
@keyframes pane-in { from { opacity: 0; transform: translateY(16px); } }

.pane__title { font-size: clamp(27px, 2.7vw, 34px); }
.pane__sub { margin-top: 9px; font-size: 15px; color: var(--text-muted); }

.form { margin-top: 28px; display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row--3 { grid-template-columns: 1fr 1fr 1fr; }

/* Kayıt formu grupları — açıklama değil, yalnız alan başlıkları */
.group { display: grid; gap: 16px; }
.group__label {
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-muted);
}
.group__label::after {
    content: ""; flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
}

.legal { display: grid; gap: 2px; }

.switch { margin-top: 22px; text-align: center; font-size: 14.5px; color: var(--text-muted); }
.switch button {
    background: none; border: 0; padding: 0 2px; cursor: pointer;
    font-size: inherit; font-weight: 600; color: var(--brand-green-300);
    transition: color var(--d1) var(--ease);
}
.switch button:hover { color: var(--brand-green-400); text-decoration: underline; }

/* ======================================================== 9. RESPONSIVE == */

@media (max-width: 1400px) {
    .auth { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
}

@media (max-width: 1080px) {
    /* Dekoratif sütun küçük ekranda yer kaplamasın */
    .auth { grid-template-columns: 1fr; }
    .auth__art { display: none; }
}

@media (max-width: 860px) {
    .row--3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .gate__inner { padding-top: clamp(24px, 5vh, 48px); }
    .gate__actions { display: grid; grid-template-columns: 1fr; width: 100%; max-width: 320px; gap: 12px; }
    .gate__actions .btn { width: 100%; }
    .gate__logo img { width: min(74vw, 300px); }

    .row, .row--3 { grid-template-columns: 1fr; }
    .auth__scroll { justify-content: flex-start; }
    .pane__title { font-size: 26px; }

    .toasts { right: 12px; left: 12px; bottom: 12px; width: auto; }

    /* Mobilde sürekli dekoratif hareket kapalı: pil + akıcılık */
    .bg__aurora, .gate__logo::before { animation: none; }
    .bg__aurora { filter: blur(80px); }
}

@media (max-width: 400px) {
    .btn--lg { min-height: 52px; font-size: 15px; }
    .auth__bar { padding-inline: 16px; }
    .auth__scroll { padding-inline: 16px; }
}

/* Kısa / yatay ekran: dikey sıkışmayı çöz */
@media (max-height: 620px) {
    .gate__inner { gap: 18px; padding-top: 20px; padding-bottom: 8px; }
    .gate__logo img { width: min(46vw, 236px); }
    .gate__foot { padding-block: 12px; }
    .auth__scroll { justify-content: flex-start; }
}
@media (max-height: 520px) and (orientation: landscape) {
    .gate__inner { gap: 14px; }
    .gate__logo img { width: min(34vw, 200px); }
    .gate__line { font-size: 15px; }
    .gate__actions { display: flex; grid-template-columns: none; width: auto; max-width: none; }
    .gate__actions .btn { width: auto; min-width: 150px; }
    .btn--lg { min-height: 46px; }
}

@media (hover: none) {
    .btn:hover { transform: none; }
}

/* ------------------------------------------------- 10. Hareket azaltma */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .rise, .gate.is-ready .rise { opacity: 1 !important; transform: none !important; animation: none !important; }
    .gate.is-ready .gate__logo { animation: none !important; }
    .auth__watermark { opacity: 1; transform: none; }
}
