/* ===== Smart Finance — Нэвтрэх / Бүртгүүлэх ===== */
:root{
  --emerald:#4f46e5; --emerald-d:#4338ca; --teal:#6366f1;
  --grad:linear-gradient(135deg,#4f46e5 0%,#6366f1 100%);
  --ink:#0f172a;
  --text:#0f172a; --text-2:#475569; --muted:#64748b;
  --bg:#ffffff; --bg-2:#f8fafc; --border:#e2e8f0;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:"Inter","Segoe UI",system-ui,sans-serif; color:var(--text); background:var(--bg); -webkit-font-smoothing:antialiased; letter-spacing:-.011em}
a{text-decoration:none; color:inherit}

/* ===== Keyboard focus (a11y) ===== */
:focus-visible{outline:3px solid #818cf8; outline-offset:2px; border-radius:8px}
.skip-link{position:absolute; left:12px; top:-60px; z-index:50; background:var(--emerald-d,#4338ca); color:#fff; padding:10px 16px; border-radius:10px; font-weight:600; font-size:14px; transition:top .2s}
.skip-link:focus{top:12px}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important}
}

.auth-wrap{display:grid; grid-template-columns:1fr; min-height:100vh}

/* Brand panel */
.auth-brand{position:relative; background:linear-gradient(155deg,var(--ink),#0a1c14 60%,#0d2820); color:#fff; padding:48px 56px; display:flex; flex-direction:column; overflow:hidden}
.auth-brand .blob{position:absolute; border-radius:50%; filter:blur(70px)}
.auth-brand .b1{width:420px;height:420px;background:radial-gradient(circle,#4f46e5,transparent 70%);top:-120px;right:-80px;opacity:.5;animation:drift 16s ease-in-out infinite}
.auth-brand .b2{width:360px;height:360px;background:radial-gradient(circle,#6366f1,transparent 70%);bottom:-120px;left:-60px;opacity:.45;animation:drift 20s ease-in-out infinite reverse}
@keyframes drift{0%,100%{transform:translate(0,0)}50%{transform:translate(30px,-24px)}}
.auth-brand-top{position:relative; z-index:1}
.ab-logo{display:flex; align-items:center; gap:11px; font-weight:800; font-size:22px}
.ab-logo span{width:40px;height:40px;border-radius:12px;background:var(--grad);display:grid;place-items:center;font-size:21px;box-shadow:0 8px 22px -6px rgba(79,70,229,.7)}
.auth-brand-mid{position:relative; z-index:1; margin:auto 0}
.auth-brand-mid h2{font-size:34px; font-weight:800; line-height:1.15; letter-spacing:-.03em; margin-bottom:18px}
.ab-feat{display:flex; flex-direction:column; gap:14px; margin-top:24px}
.ab-feat div{display:flex; align-items:center; gap:12px; font-size:15px; color:rgba(255,255,255,.85)}
.ab-feat i{width:26px;height:26px;border-radius:8px;background:rgba(79,70,229,.2);color:#c7d2fe;display:grid;place-items:center;font-size:13px;font-style:normal;flex-shrink:0}
.ab-quote{position:relative; z-index:1; margin-top:36px; padding:18px 20px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); border-radius:16px}
.ab-quote p{font-size:14px; color:rgba(255,255,255,.85); line-height:1.6}
.ab-quote-who{display:flex; align-items:center; gap:10px; margin-top:12px}
.ab-quote-who b{font-size:13px}
.ab-quote-who span{font-size:12px; color:rgba(255,255,255,.55)}
.ab-ava{width:34px;height:34px;border-radius:50%;background:var(--grad);display:grid;place-items:center;font-weight:800;font-size:14px}

/* Form panel */
.auth-main{display:grid; place-items:center; padding:40px 24px}
.auth-card{width:100%; max-width:400px}
.auth-card .back{font-size:13px; color:var(--muted); font-weight:600; display:inline-flex; gap:6px; margin-bottom:28px; transition:.2s}
.auth-card .back:hover{color:var(--emerald-d)}
.auth-card h1{font-size:27px; font-weight:800; letter-spacing:-.03em; margin-bottom:6px}
.auth-card .sub{font-size:14.5px; color:var(--muted); margin-bottom:28px}
.field{margin-bottom:16px}
.field label{display:block; font-size:13px; font-weight:600; color:var(--text-2); margin-bottom:7px}
.field input{width:100%; padding:13px 15px; border:1px solid var(--border); border-radius:12px; font-size:14.5px; font-family:inherit; outline:none; background:var(--bg); color:var(--text); transition:.18s}
.field input:focus{border-color:var(--emerald); box-shadow:0 0 0 4px rgba(79,70,229,.12)}
.field input::placeholder{color:#8a9a93}
.input-wrap{position:relative}
.input-wrap input{padding-right:48px}
.pw-toggle{position:absolute; top:50%; right:7px; transform:translateY(-50%); width:36px; height:36px; border:none; background:none; color:var(--muted); display:grid; place-items:center; cursor:pointer; border-radius:9px; transition:.15s; touch-action:manipulation}
.pw-toggle:hover{color:var(--text-2); background:var(--bg-2)}
.pw-toggle svg{width:18px; height:18px}
.pw-toggle .ico-off{display:none}
.pw-toggle.show .ico-on{display:none}
.pw-toggle.show .ico-off{display:block}
.form-row{display:flex; align-items:center; justify-content:space-between; margin:4px 0 22px; font-size:13px}
.form-row label{display:flex; align-items:center; gap:8px; color:var(--text-2); cursor:pointer; font-weight:500}
.form-row a{color:var(--emerald-d); font-weight:600}
.abtn{width:100%; padding:14px; border:none; border-radius:12px; font-size:15px; font-weight:700; font-family:inherit; cursor:pointer; background:var(--grad); color:#fff; box-shadow:0 12px 26px -10px rgba(79,70,229,.7); transition:transform .18s, box-shadow .18s}
.abtn:hover{transform:translateY(-2px); box-shadow:0 18px 34px -10px rgba(79,70,229,.8)}
.divider{display:flex; align-items:center; gap:14px; margin:22px 0; color:var(--muted); font-size:12.5px}
.divider::before,.divider::after{content:""; flex:1; height:1px; background:var(--border)}
.social{display:flex; gap:12px}
.social button{flex:1; padding:12px; min-height:44px; border:1px solid var(--border); border-radius:12px; background:var(--bg); font-size:13.5px; font-weight:600; font-family:inherit; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:9px; transition:.18s; color:var(--text); touch-action:manipulation}
.social button:hover{background:var(--bg-2); transform:translateY(-1px)}
.social button svg{width:18px; height:18px; flex-shrink:0}
.auth-foot{text-align:center; margin-top:26px; font-size:14px; color:var(--muted)}
.auth-foot a{color:var(--emerald-d); font-weight:700}
.terms{font-size:12px; color:var(--muted); margin-top:14px; text-align:center; line-height:1.5}
.terms a{color:var(--emerald-d)}

@media(max-width:860px){
  .auth-wrap{grid-template-columns:1fr}
  .auth-brand{display:none}
}
