/* ATMAN — sign-up and login pages (register.html, login.html) */

:root {
  --bg-deep: #0b0d10; --surface: #15181d; --surface-raised: #1c1f26; --border-hairline: #262a32;
  --gold: #c9a227; --amber-glow: #ffc85c; --text-primary: #edeae2; --text-muted: #8b8f98;
  --success: #4caf7d; --danger: #e2665a; --radius: 10px;
  --font-display: 'Sora', sans-serif; --font-body: 'Inter', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 50% 0%, rgba(201,162,39,0.08), transparent 60%), var(--bg-deep); color: var(--text-primary); font-family: var(--font-body); }
.screen { min-height: 100vh; display: flex; justify-content: center; padding: 32px 16px 60px; }
.card { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border-hairline); border-radius: 14px; padding: 32px 28px; align-self: flex-start; }
.brand { text-align: center; }
.brand img { width: 140px; max-width: 55%; }
.light-beam { height: 2px; width: 64px; margin: 16px auto 24px; background: linear-gradient(90deg, transparent, var(--gold), var(--amber-glow), var(--gold), transparent); border-radius: 2px; }
h1 { font-family: var(--font-display); font-size: 20px; text-align: center; margin: 0 0 4px; }
.sub { text-align: center; color: var(--text-muted); font-size: 13px; margin: 0 0 22px; }

.type-title { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.type-option { position: relative; display: block; cursor: pointer; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option span { display: block; border: 1px solid var(--border-hairline); background: var(--surface-raised); border-radius: 10px; padding: 12px; min-height: 78px; transition: .15s; }
.type-option strong { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.type-option small { display: block; font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.type-option input:checked + span { border-color: var(--gold); background: rgba(201,162,39,0.10); }
.tag { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.tag.instant { background: rgba(76,175,125,.15); color: var(--success); }
.tag.approval { background: rgba(255,200,92,.15); color: var(--amber-glow); }

.note { font-size: 12px; color: var(--text-muted); background: var(--surface-raised); border: 1px dashed var(--border-hairline); border-radius: 8px; padding: 10px 12px; margin: 0 0 18px; line-height: 1.5; }
.section { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 22px 0 12px; padding-top: 14px; border-top: 1px solid var(--border-hairline); }
.section:first-of-type { border-top: none; padding-top: 0; margin-top: 4px; }

.field { margin-bottom: 14px; }
.field label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.field label .opt { font-size: 11px; opacity: .8; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; background: var(--surface-raised); border: 1px solid var(--border-hairline); border-radius: 8px; color: var(--text-primary); font: inherit; font-size: 14px; outline: none; }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field input.ok { border-color: var(--success); }
.field input.bad, .field textarea.bad { border-color: var(--danger); }
.field textarea.ok { border-color: var(--success); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.hint { font-size: 11px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.status { font-size: 12px; margin-top: 6px; min-height: 16px; }
.status.ok { color: var(--success); } .status.bad { color: var(--danger); }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.suggest button { font: inherit; font-size: 12px; color: var(--amber-glow); background: rgba(255,200,92,.08); border: 1px solid rgba(255,200,92,.35); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.input-btn { display: flex; gap: 8px; }
.input-btn input { flex: 1; }
.btn-sm { font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 0 14px; border-radius: 8px; border: 1px solid var(--gold); background: transparent; color: var(--amber-glow); cursor: pointer; }
.btn-sm:disabled { opacity: .5; cursor: not-allowed; }
.otp-box { display: none; margin-top: 10px; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 15px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-muted); margin: 6px 0 14px; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--gold); }
.field label.check { display: flex; justify-content: flex-start; font-size: 12px; }
#gstin::placeholder, #pan::placeholder { text-transform: none; }
.btn-primary { width: 100%; padding: 13px; border: none; border-radius: 8px; background: var(--gold); color: #14140f; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; margin-top: 6px; }
.btn-primary:hover { background: var(--amber-glow); }
.error { color: var(--danger); font-size: 13px; min-height: 18px; margin: 4px 0 8px; }
.foot { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 18px; }
.foot a { color: var(--amber-glow); }
.done { display: none; text-align: center; padding: 10px 0; }
.done h2 { font-family: var(--font-display); font-size: 20px; margin: 0 0 8px; }
.done p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.hidden { display: none !important; }
@media (max-width: 480px) { .type-grid, .row2, .row3 { grid-template-columns: 1fr; } .card { padding: 26px 18px; } }

/* ---------- Login page ---------- */
.card.small { max-width: 400px; }
.links { display: flex; justify-content: space-between; font-size: 12px; margin: -4px 0 16px; }
.links a, .back { color: var(--amber-glow); text-decoration: none; cursor: pointer; font-size: 12px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; text-align: center; border: 1px solid var(--border-hairline); background: var(--surface-raised); border-radius: 10px; padding: 12px 8px; font-size: 13px; }
.choice span b { display: block; font-size: 18px; margin-bottom: 4px; }
.choice input:checked + span { border-color: var(--gold); background: rgba(201,162,39,.10); }
.msg { font-size: 13px; min-height: 18px; margin: 0 0 12px; line-height: 1.5; }
.msg.bad { color: var(--danger); } .msg.ok { color: var(--success); } .msg.info { color: var(--text-muted); }
.steps { display: flex; gap: 6px; justify-content: center; margin: 10px 0 14px; }
.steps i { width: 26px; height: 3px; border-radius: 3px; background: var(--border-hairline); }
.steps i.on { background: var(--gold); }
.view { display: none; } .view.active { display: block; }
.links a, a.back { color: var(--amber-glow); text-decoration: none; cursor: pointer; font-size: 12px; }
.choice label { position: relative; }
.screen.center { align-items: center; }
.screen.center .card { align-self: center; }

/* ---------- Strong password: strength bar + live checklist ---------- */
.pw-meter { height: 6px; background: var(--surface-raised); border: 1px solid var(--border-hairline); border-radius: 99px; overflow: hidden; margin: 2px 0 6px; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .25s, background .25s; }
.pw-meter-label { font-size: 12px; color: var(--text-muted); margin: 0 0 8px; min-height: 16px; }
.pw-meter-label b { font-weight: 600; }
.pw-rules { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 14px; font-size: 12px; color: var(--text-muted); }
.pw-rules li { transition: color .15s; }
.pw-rules li::before { content: '○'; display: inline-block; width: 16px; }
.pw-rules li.ok { color: var(--success); }
.pw-rules li.ok::before { content: '✓'; }
.pw-rules li.wide { grid-column: 1 / -1; }
@media (max-width: 480px) { .pw-rules { grid-template-columns: 1fr; } }
/* tick boxes inside a field: keep the box small, text next to it */
.field label.check input { width: auto; flex: none; margin-top: 2px; }
.field label.check { align-items: flex-start; line-height: 1.5; }

/* Sign-up: the part after the mobile OTP stays locked until the number is verified */
.after-otp { border: 0; margin: 0; padding: 0; min-width: 0; transition: opacity .2s; }
.after-otp:disabled { opacity: .45; pointer-events: none; user-select: none; }
.lock-note { font-size: 12.5px; color: var(--gold); background: rgba(201,162,39,.08); border: 1px dashed rgba(201,162,39,.5); border-radius: 10px; padding: 10px 12px; margin: 6px 0 4px; }
