:root {
  --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc;
  --primary: #2563eb; --primary-dark: #1d4ed8; --primary-soft: #eff6ff;
  --ok: #16a34a; --ok-soft: #dcfce7; --err: #dc2626; --err-soft: #fee2e2; --warn: #d97706;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

.auth { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(420px, 560px); min-height: 100vh; }

/* Sol tanıtım paneli */
.auth-aside {
  position: relative; overflow: hidden; color: #e2e8f0; padding: 44px 52px;
  background: radial-gradient(1200px 600px at -10% 110%, rgba(37,99,235,.45), transparent 60%),
              radial-gradient(800px 500px at 110% -10%, rgba(14,165,233,.25), transparent 60%), #0b1220;
  display: flex; flex-direction: column;
}
.auth-aside::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: linear-gradient(rgba(148,163,184,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.35) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
}
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #2563eb, #0ea5e9); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; box-shadow: 0 6px 18px rgba(37,99,235,.45); }
.logo small { display: block; font-size: 11px; color: #94a3b8; font-weight: 600; letter-spacing: .02em; }
.aside-body { margin: auto 0; max-width: 520px; position: relative; z-index: 1; }
.aside-body h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 14px; color: #fff; }
.aside-body h1 em { font-style: normal; background: linear-gradient(90deg, #60a5fa, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aside-body p { color: #94a3b8; font-size: 15px; line-height: 1.6; margin: 0 0 26px; }
.aside-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.aside-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #cbd5e1; }
.aside-list b { color: #fff; }
.tick { flex: 0 0 22px; height: 22px; border-radius: 7px; background: rgba(37,99,235,.25); color: #93c5fd; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.mini-card { position: relative; z-index: 1; background: rgba(15,23,42,.7); border: 1px solid rgba(148,163,184,.2); border-radius: 14px; padding: 14px 16px; backdrop-filter: blur(6px); max-width: 460px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; padding: 7px 0; border-bottom: 1px dashed rgba(148,163,184,.18); }
.mini-row:last-child { border-bottom: 0; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pill-ok { background: rgba(22,163,74,.18); color: #4ade80; }
.pill-err { background: rgba(220,38,38,.2); color: #f87171; }
.pill-warn { background: rgba(217,119,6,.2); color: #fbbf24; }
.aside-foot { position: relative; z-index: 1; font-size: 12px; color: #64748b; margin-top: 28px; }

/* Sağ form paneli */
.auth-main { background: #fff; display: flex; flex-direction: column; padding: 32px 56px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.auth-top .logo { color: var(--ink); display: none; }
.form-wrap { margin: auto 0; width: 100%; max-width: 400px; align-self: center; }
.form-wrap h2 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 6px; }
.form-wrap .lead { color: var(--muted); font-size: 14px; margin: 0 0 26px; line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; }
.input-wrap { position: relative; }
.input { width: 100%; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-size: 14.5px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.input.invalid { border-color: var(--err); box-shadow: 0 0 0 4px rgba(220,38,38,.1); }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; padding: 6px; }
.row { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 18px; font-size: 13px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #334155; cursor: pointer; line-height: 1.45; }
.check input { margin-top: 2px; accent-color: var(--primary); width: 16px; height: 16px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--ink); transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost:hover { background: var(--bg); }
.btn[disabled] { opacity: .6; cursor: progress; }
.divider { display: flex; align-items: center; gap: 12px; color: #94a3b8; font-size: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.alt { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 22px; }
.alert { padding: 11px 13px; border-radius: 10px; font-size: 13px; margin-bottom: 16px; display: none; line-height: 1.45; }
.alert.show { display: block; }
.alert-err { background: var(--err-soft); color: #991b1b; }
.alert-ok { background: var(--ok-soft); color: #166534; }
.alert-info { background: var(--primary-soft); color: #1e40af; }
.hint { font-size: 12px; color: var(--muted); margin-top: -8px; margin-bottom: 14px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #94a3b8; margin-top: 26px; }

/* Kod (2FA) */
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.otp input { text-align: center; font-size: 22px; font-weight: 700; padding: 12px 0; }

/* Adımlar (kayıt) */
.steps { display: flex; gap: 8px; margin-bottom: 22px; }
.step { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.step.on { background: var(--primary); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.choice label { border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: center; line-height: 1.3; }
.choice input { display: none; }
.choice input:checked + span { color: var(--primary); }
.choice label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips label { border: 1px solid #cbd5e1; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chips input { display: none; }
.chips label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.meter { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.success-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 28px; margin-bottom: 18px; }
.url-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; margin-bottom: 18px; background: var(--bg); }
.hidden { display: none !important; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 24px 22px; }
  .auth-top .logo { display: flex; }
}
