/* ── Sign-in / sign-up (light & clean, see tech.css) — static, no animation ───── */

body.auth { padding: 0; margin: 0; min-height: 100vh; }
body.auth h1, body.auth h2 { font-family: var(--t-display); color: var(--t-ink); }

.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }

/* Brand panel */
.auth-brand {
    position: relative; overflow: hidden; padding: 40px clamp(32px, 5vw, 72px);
    display: flex; flex-direction: column; gap: 28px; border-right: 1px solid var(--t-border);
    background:
        radial-gradient(600px 360px at 90% 0%, #e3edff, transparent 70%),
        radial-gradient(420px 300px at 0% 100%, #e3f6f3, transparent 70%),
        #f6f9ff;
}
.auth-brand-grid { display: none; }
.auth-pitch { max-width: 540px; }
.auth-pitch h1 { font-size: clamp(2rem, 3.2vw, 2.7rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 20px 0 14px; }
body.lang-bn .auth-pitch h1 { letter-spacing: 0; line-height: 1.3; }
.auth-pitch p { color: var(--t-muted); font-size: 1.05rem; max-width: 460px; margin: 0; }
.pitch-list { display: grid; gap: 8px; margin: 0; }
.pitch-list li { display: flex; gap: 10px; color: var(--t-ink); font-size: .95rem; }
.pitch-list i { color: var(--t-teal); }

.auth-visual { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.auth-visual .scanner { width: min(340px, 100%, 40vh); }
.fc-auth { left: 0; bottom: 20%; width: 240px; }

.auth-trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--t-muted); font-size: .86rem; }
.auth-trust i { color: var(--t-teal); margin-right: 6px; }

/* Form side */
.auth-main { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px); background: #fff; }
.auth-top { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.auth-top .home { margin-right: auto; color: var(--t-muted); font-size: .9rem; text-decoration: none; }
.auth-top .home:hover { color: var(--t-blue); }

.auth-form-wrap { margin: auto; width: 100%; max-width: 420px; padding: 36px 0; }
.auth-form-wrap.wide { max-width: 560px; }
.form-kicker { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--t-teal); margin-bottom: 12px; }
body.lang-bn .form-kicker { text-transform: none; letter-spacing: .02em; font-family: 'Hind Siliguri', var(--t-mono); font-size: .85rem; }
.auth-form-wrap h2 { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
.auth-form-wrap .lead-text { color: var(--t-muted); margin-bottom: 28px; }
.plan-chip { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-size: .72rem; padding: 3px 9px; border-radius: 999px; color: var(--t-blue); background: var(--t-blue-50); border: 1px solid #c9d9fb; text-transform: uppercase; vertical-align: middle; }

/* Fields */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 8px; color: var(--t-ink); }
.field label small { color: var(--t-muted); font-weight: 400; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field-row a { font-size: .82rem; font-weight: 600; color: var(--t-blue); text-decoration: none; }
.field-row a:hover { text-decoration: underline; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.field-grid .span-2 { grid-column: span 2; }
.field-hint { font-size: .78rem; color: var(--t-muted); margin-top: 6px; }

.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #8a9ab3; pointer-events: none; }
.input-icon input {
    width: 100%; height: 50px; padding: 0 46px 0 44px; border-radius: 12px; font-size: 1rem; color: var(--t-ink);
    background: #fff; border: 1px solid var(--t-border-2); transition: border-color .15s, box-shadow .15s;
}
.input-icon input::placeholder { color: #9aa9be; }
.input-icon input:hover { border-color: #b5c5dd; }
.input-icon input:focus { outline: none; border-color: var(--t-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.input-icon:focus-within > i { color: var(--t-blue); }
.input-icon input.input-validation-error { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225, 29, 72, .1); }
.input-icon .peek { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 38px; height: 38px; border-radius: 9px; color: #7d8ca3; }
.input-icon .peek:hover { background: var(--t-surface-2); color: var(--t-blue); }
.field-validation-error { display: block; color: #e11d48; font-size: .8rem; margin-top: 6px; }
.field-validation-valid { display: none; }

.auth-check { display: flex; align-items: center; gap: 10px; margin: 4px 0 22px; font-size: .9rem; color: var(--t-muted); cursor: pointer; }
.auth-check input { width: 18px; height: 18px; accent-color: var(--t-blue); }

.btn-glow .spinner-border { width: 1.1rem; height: 1.1rem; border-width: .15em; }

.auth-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: .9rem; margin-bottom: 20px; }
.auth-alert.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.auth-alert.err { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.auth-alert ul { margin: 0; padding-left: 0; list-style: none; }
.validation-summary-valid { display: none; }

.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--t-muted); font-size: .82rem; margin: 26px 0 18px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--t-border); }
.auth-switch { text-align: center; color: var(--t-muted); font-size: .9rem; margin: 24px 0 0; }
.auth-switch a { color: var(--t-blue); font-weight: 600; text-decoration: none; }
.auth-foot { text-align: center; color: #94a3b8; font-size: .72rem; }

/* Sign-up wizard */
.stepper { --progress: 0; position: relative; display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 0 0 30px; }
.stepper::before, .stepper::after { content: ""; position: absolute; top: 17px; left: 17px; right: 17px; height: 2px; border-radius: 2px; background: var(--t-border); }
.stepper::after { right: auto; width: calc((100% - 34px) * var(--progress)); background: var(--t-blue); }
.stepper li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; font-size: .78rem; color: var(--t-muted); }
.stepper li:first-child { align-items: flex-start; }
.stepper li:last-child { align-items: flex-end; }
.stepper .num { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: .85rem; background: #fff; border: 1px solid var(--t-border-2); color: var(--t-muted); }
.stepper li.active { color: var(--t-ink); font-weight: 600; }
.stepper li.active .num { color: #fff; background: var(--t-blue); border-color: var(--t-blue); }
.stepper li.done .num { color: var(--t-teal); border-color: var(--t-teal); background: var(--t-teal-50); }
html:not(.js) .stepper { display: none; }

.pane { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; }
.pane-title { float: none; width: auto; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--t-teal); margin-bottom: 18px; padding: 0; }
body.lang-bn .pane-title { text-transform: none; letter-spacing: .02em; font-size: .85rem; }
.js .pane:not(.active) { display: none; }
html:not(.js) .pane { margin-bottom: 28px; }
html:not(.js) [data-next], html:not(.js) [data-back] { display: none; }
.wiz-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.wiz-nav .btn-glow { min-width: 160px; }
.wiz-nav .grow { flex: 1; }

.strength { display: grid; grid-template-columns: repeat(4, 1fr) auto; align-items: center; gap: 5px; margin-top: 9px; }
.strength span { height: 4px; border-radius: 4px; background: var(--t-border); }
.strength em { font-style: normal; font-size: .7rem; color: var(--t-muted); min-width: 44px; text-align: right; }
.strength[data-score="1"] span:nth-child(-n+1) { background: #e11d48; }
.strength[data-score="2"] span:nth-child(-n+2) { background: #f59e0b; }
.strength[data-score="3"] span:nth-child(-n+3) { background: var(--t-blue); }
.strength[data-score="4"] span:nth-child(-n+4) { background: #16a34a; }

@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { padding: 22px 20px 26px; gap: 18px; border-right: 0; border-bottom: 1px solid var(--t-border); }
    .auth-pitch h1 { font-size: 1.7rem; margin: 14px 0 8px; }
    .auth-pitch p, .pitch-list { display: none; }
    .auth-visual, .auth-trust { display: none; }
    .auth-main { padding: 18px 20px; }
    .auth-form-wrap { padding: 22px 0 30px; }
}
@media (max-width: 575.98px) {
    .field-grid { grid-template-columns: 1fr; }
    .field-grid .span-2 { grid-column: auto; }
    .stepper .lbl { font-size: .72rem; }
    .wiz-nav .btn-glow { min-width: 0; flex: 1; }
    .wiz-nav .btn-ghost { padding: 0 1rem; }
}
