/* =============================================================================
   BALIKÇISIN — AUTH TASARIM SİSTEMİ (Login / ForgotPassword)
   Kurulum/YeniAdmin "login-v6" tasarımının birebir portu.

   Bu dosya auth sayfalarının TAMAMINI tek başına giydirir (_AuthLayout.cshtml).
   Tailwind veya site.css buraya hiç dahil edilmez. Sınıf adları ve değerler
   kaynak mockup ile birebir aynıdır — sağ form panelinde kart/gölge/blur
   YOKTUR (mockup'ta da yok): .panel arka planı sayfayla aynıdır, tek yüzey
   .field-input kutularıdır.

   Gerçek sunucu tarafı işlevsellik (reCAPTCHA, hata/uyarı kutuları, çok
   kanallı kod yeniden gönderme, autofill/floating-focus mekaniği) için
   mockup'ta karşılığı olmayan birkaç ek sınıf en altta, ayrı bir blokta
   toplanmıştır — bunlar da aynı görsel dili (token'lar, boşluklar, radius)
   kullanır.
   ========================================================================== */

:root,
[data-theme="dark"] {
  --font-display: "Space Grotesk", "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --bg-app: #0a0c12; --bg-panel: #12151e; --bg-panel-2: #171b26;
  --border-subtle: rgba(255,255,255,.06); --border: rgba(255,255,255,.1);
  --text-primary: #eef1f7; --text-secondary: #8891a4; --text-tertiary: #545d70;
  --accent: #f97316; --accent-soft: rgba(249,115,22,.14);
  --success: #22c55e; --success-soft: rgba(34,197,94,.14);
  --danger: #ef4444; --danger-soft: rgba(239,68,68,.12);
  --warning: #eab308; --warning-soft: rgba(234,179,8,.12);

  --visual-bg: radial-gradient(120% 90% at 100% 0%, #1a2030 0%, #0b0d13 55%), #0b0d13;
  --visual-text: #f3f5f9; --visual-sub: #8891a4;
  --blob-a: rgba(249,115,22,.16); --blob-b: rgba(79,141,253,.14);
}

[data-theme="light"] {
  --bg-app: #f4f5f8; --bg-panel: #ffffff; --bg-panel-2: #f7f8fb;
  --border-subtle: rgba(15,23,42,.06); --border: rgba(15,23,42,.1);
  --text-primary: #10131c; --text-secondary: #5b6478; --text-tertiary: #98a1b3;
  --accent: #ea6a0e; --accent-soft: rgba(234,106,14,.1);
  --success: #16a34a; --success-soft: rgba(22,163,74,.1);
  --danger: #dc2626; --danger-soft: rgba(220,38,38,.08);
  --warning: #ca8a04; --warning-soft: rgba(202,138,4,.08);

  --visual-bg: #ffffff; --visual-text: #10131c; --visual-sub: #5b6478;
  --blob-a: rgba(234,106,14,.12); --blob-b: rgba(47,111,224,.1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--font-body); background: var(--bg-app); color: var(--text-primary); overflow: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

.auth-fullpage { display: grid; grid-template-columns: 1.15fr 1fr; height: 100vh; width: 100vw; position: relative; }

.top-cluster { position: absolute; top: 24px; right: 28px; z-index: 20; display: flex; align-items: center; gap: 12px; }
.clock { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.theme-toggle { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-panel); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); flex-shrink: 0; }
.theme-toggle svg { width: 17px; height: 17px; }

/* ================= SOL — editoryal vitrin ================= */
.visual {
  position: relative; overflow: hidden;
  background: var(--visual-bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 64px;
}

.blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: 0; }
.blob.a { width: 420px; height: 420px; background: var(--blob-a); top: -120px; right: -100px; }
.blob.b { width: 380px; height: 380px; background: var(--blob-b); bottom: -140px; left: -80px; }

.watermark {
  position: absolute; left: -40px; bottom: -140px; z-index: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 620px; line-height: 1;
  color: var(--visual-text); opacity: .035; user-select: none; pointer-events: none;
}

.visual-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 14px; margin-bottom: 54px; }
.brand-logo { width: 172px; height: auto; display: block; flex-shrink: 0; }
.auth-logo-light { display: none; }
[data-theme="light"] .auth-logo-dark { display: none; }
[data-theme="light"] .auth-logo-light { display: block; }
.visual-top .divider { width: 1px; height: 22px; background: var(--visual-sub); opacity: .35; }
.visual-top .sub { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--visual-sub); }

.visual-headline { position: relative; z-index: 3; max-width: 480px; }
.visual-headline .eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.visual-headline .eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.visual-headline h1 { color: var(--visual-text); font-size: 40px; line-height: 1.18; font-weight: 700; }
.visual-headline p { color: var(--visual-sub); font-size: 14.5px; margin-top: 16px; line-height: 1.65; max-width: 400px; }

/* floating product showcase card */
.float-card {
  position: absolute; z-index: 4; right: 54px; bottom: 74px; width: 300px;
  background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: 16px;
  box-shadow: 0 30px 60px -22px rgba(20,23,31,.28), 0 4px 14px -6px rgba(20,23,31,.12);
  transform: rotate(-3.5deg);
  padding: 16px;
}
.float-card .fc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fc-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: #fff; background: #dc2626; padding: 3px 9px; border-radius: 20px; }
.fc-live .blip { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: blip 1.4s ease infinite; }
@keyframes blip { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.fc-timer { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--text-secondary); }
.fc-thumb { height: 108px; border-radius: 10px; background: linear-gradient(135deg, var(--bg-panel-2), var(--bg-panel)); border: 1px solid var(--border-subtle); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fc-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.fc-name { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.fc-seller { font-size: 11px; color: var(--text-tertiary); margin-bottom: 12px; }
.fc-bottom { display: flex; align-items: flex-end; justify-content: space-between; }
.fc-price-lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-tertiary); }
.fc-price { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-primary); }
.fc-bid-btn { font-size: 11.5px; font-weight: 700; color: #fff; background: var(--accent); padding: 7px 12px; border-radius: 8px; }

/* annotation chips */
.chip { position: absolute; z-index: 5; background: var(--bg-panel); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 10px 14px; box-shadow: 0 14px 30px -14px rgba(20,23,31,.25); }
.chip .cv { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.chip .cv .live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.chip .cl { font-size: 9.5px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.chip.chip-1 { top: 62px; right: 118px; transform: rotate(2deg); }
.chip.chip-2 { bottom: 46px; left: 40%; transform: rotate(-2.5deg); }

.connector { position: absolute; z-index: 3; stroke: var(--text-tertiary); stroke-width: 1; stroke-dasharray: 3 4; opacity: .4; }

/* ================= SAĞ — form ================= */
.panel { display: flex; align-items: center; justify-content: center; background: var(--bg-app); padding: 40px; overflow-y: auto; }
.col { width: 100%; max-width: 380px; }
.step { animation: in .4s cubic-bezier(.2,.8,.2,1); }
@keyframes in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow-r { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.title { font-size: 29px; font-weight: 700; margin-bottom: 10px; }
.desc { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.6; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 8px; }
.field-input { display: flex; align-items: center; gap: 11px; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 11px; padding: 13px 15px; }
.field-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-input svg { width: 16px; height: 16px; color: var(--text-tertiary); flex-shrink: 0; }
.field-input input { border: none; background: none; outline: none; color: var(--text-primary); font-size: 14.5px; width: 100%; font-family: inherit; }
.field-input .eye { color: var(--text-tertiary); cursor: pointer; flex-shrink: 0; background: none; border: none; padding: 0; display: flex; }
.row-between { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 26px; }
.remember { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-secondary); cursor: pointer; }
.remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch { width: 30px; height: 17px; border-radius: 20px; background: var(--bg-panel-2); border: 1px solid var(--border); position: relative; flex-shrink: 0; transition: background-color .2s, border-color .2s; }
.switch::after { content: ""; position: absolute; top: 1px; left: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--text-secondary); transition: transform .2s, background-color .2s; }
.remember input:checked + .switch { background: var(--accent); border-color: var(--accent); }
.remember input:checked + .switch::after { transform: translateX(13px); background: #fff; }
.link-muted { font-size: 12.5px; color: var(--text-secondary); }
.link-muted:hover { color: var(--accent); }
.link-accent { font-size: 12.5px; color: var(--accent); font-weight: 700; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.btn { width: 100%; border: none; border-radius: 11px; padding: 15px; font-size: 14.5px; font-weight: 700; color: #fff; background: linear-gradient(95deg, var(--accent), #d1450c); background-size: 160% 100%; display: flex; align-items: center; justify-content: center; gap: 9px; position: relative; overflow: hidden; transition: background-position .35s ease, transform .1s ease; }
.btn:hover { background-position: 100% 0; }
.btn:active { transform: scale(.99); }
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn.loading .label, .btn.loading svg.arrow { opacity: 0; }
.btn .spinner { position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; opacity: 0; animation: spin .7s linear infinite; }
.btn.loading .spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.security { display: flex; align-items: center; gap: 7px; justify-content: center; margin-top: 20px; font-size: 11.5px; color: var(--text-tertiary); }
.security .dot-sm { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); flex-shrink: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 24px; }
.back svg { width: 14px; height: 14px; }
.back:hover { color: var(--text-primary); }
.otp-row { display: flex; gap: 9px; margin-bottom: 22px; }
.otp-box { width: 100%; aspect-ratio: 1; text-align: center; font-size: 19px; font-weight: 700; font-family: var(--font-mono); border-radius: 11px; border: 1px solid var(--border); background: var(--bg-panel); color: var(--text-primary); outline: none; }
.otp-box:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.otp-box.err { border-color: var(--danger); }
.resend { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 24px; }
.resend strong { color: var(--text-primary); font-family: var(--font-mono); }
.success-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--success-soft); color: var(--success); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.success-icon svg { width: 24px; height: 24px; }

/* ============================================================================
   Mockup'ta karşılığı olmayan, gerçek işlevsellik için gereken ek sınıflar —
   aynı görsel dile (token, radius, boşluk) uygun, minimal ek yüzeyler.
   ========================================================================== */
.alert { display: flex; align-items: flex-start; gap: 8px; padding: 11px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; margin-bottom: 20px; }
.alert svg { flex-shrink: 0; margin-top: 1px; width: 14px; height: 14px; }
.alert-err { color: var(--danger); background: var(--danger-soft); border: 1px solid transparent; }
.alert-ok { color: var(--success); background: var(--success-soft); border: 1px solid transparent; }
.alert-warn { color: var(--warning); background: var(--warning-soft); border: 1px solid transparent; }
.recaptcha-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.channel-choice { display: flex; gap: 8px; }
.channel-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.channel-choice label {
  flex: 1; text-align: center; padding: 10px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-panel); color: var(--text-secondary);
  font-size: 13px; font-weight: 600; transition: border-color .2s, color .2s, background-color .2s;
}
.channel-choice input:checked + label { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.channel-choice input:focus-visible + label { box-shadow: 0 0 0 3px var(--accent-soft); }
.resend-channels { display: flex; gap: 8px; }
.resend-btn { padding: 8px 12px; border-radius: 8px; font-size: 11.5px; font-weight: 600; background: var(--bg-panel); border: 1px solid var(--border); color: var(--text-secondary); display: inline-flex; align-items: center; gap: 6px; }
.resend-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.shake { animation: shake .4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake { 10%,90% { transform: translateX(-1px); } 20%,80% { transform: translateX(2px); } 30%,50%,70% { transform: translateX(-4px); } 40%,60% { transform: translateX(4px); } }

/* ============================== DUYARLILIK ================================ */
@media (max-width: 980px) {
  html, body { overflow-y: auto; }
  .auth-fullpage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; min-height: 100vh; align-content: start; }

  .visual {
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
    height: 62px; min-height: 62px; flex: none;
    padding: 0 22px; background: var(--bg-panel);
    border-bottom: 1px solid var(--border-subtle);
  }
  .visual::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; z-index: 2;
    background: linear-gradient(90deg, var(--accent), #4f8dfd);
  }
  .watermark, .float-card, .chip, .connector, .blob, .visual-headline { display: none; }
  .visual-top { margin-bottom: 0; }
  .visual-top .divider, .visual-top .sub { display: none; }
  .brand-logo { width: 116px; }

  .panel { padding: 36px 24px 44px; background: var(--bg-app); }
  .top-cluster { top: 15px; right: 20px; }
  .top-cluster .theme-toggle { box-shadow: 0 1px 4px rgba(0,0,0,.1); }
  .clock { display: none; }
}
@media (max-width: 420px) {
  .brand-logo { width: 104px; }
  .visual { height: 56px; min-height: 56px; padding: 0 18px; }
  .panel { padding: 28px 18px 36px; }
}
@media (prefers-reduced-motion: reduce) { .fc-live .blip, .chip .live-dot { animation: none; } }
