/* Sign-in extras and the password recovery screens (2026-10-09). Uses the FCNB brand variables (--b-*) when present. */
:root { --au-pri: var(--b-primary, #FA5E01); --au-pri-dark: var(--b-primary-600, #E05200); --au-navy: var(--b-navy, #0C1028); --au-ink: #0F172A; --au-mute: #64748B; --au-line: #CBD2DE; --au-bad: #DC2626; --au-ok: #15803D; }

/* ---------- recovery page shell ---------- */
.au-body { min-height: 100vh; margin: 0; padding: 28px 16px; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; color: #334155; -webkit-font-smoothing: antialiased;
    background: radial-gradient(900px 480px at 85% -10%, rgba(var(--b-primary-rgb, 250, 94, 1), .22), transparent 60%), radial-gradient(700px 420px at -10% 110%, rgba(42, 49, 88, .9), transparent 60%), var(--au-navy); }
.au-body *, .au-body *::before, .au-body *::after { box-sizing: border-box; }
.au-card { width: 100%; max-width: 460px; background: #fff; border-radius: 20px; padding: 30px 32px 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.au-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; margin-bottom: 22px; }
.au-brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #E2E8F0; padding: 3px; }
.au-brand b { display: block; color: var(--au-ink); font-size: 15px; font-weight: 700; line-height: 1.25; }
.au-brand small { display: block; color: var(--au-mute); font-size: 12.5px; }
.au-steps { list-style: none; display: flex; gap: 6px; margin: 0 0 22px; padding: 0; }
.au-steps li { flex: 1; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #94A3B8; padding-top: 10px; border-top: 3px solid #E2E8F0; }
.au-steps li span { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; background: #F1F5F9; color: #64748B; flex: none; }
.au-steps li.is-on { color: var(--au-ink); border-top-color: var(--au-pri); }
.au-steps li.is-on span { background: var(--au-pri); color: #fff; }
.au-steps li.is-done { color: var(--au-ok); border-top-color: #86EFAC; }
.au-steps li.is-done span { background: #DCFCE7; color: var(--au-ok); }
.au-title { margin: 0 0 6px; font-size: 23px; line-height: 1.25; font-weight: 700; color: var(--au-ink); letter-spacing: -.02em; }
.au-sub { margin: 0 0 20px; font-size: 14px; line-height: 1.55; color: var(--au-mute); }
.au-sub b { color: var(--au-ink); }
.au-back { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #EEF2F6; text-align: center; font-size: 13.5px; }
.au-back a, .au-link { color: var(--au-pri-dark); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.au-back a:hover, .au-link:hover { text-decoration: underline; }
.au-link[disabled] { color: #94A3B8; cursor: default; text-decoration: none; }
.au-foot { margin: 20px 0 0; color: #6F7896; font-size: 12px; }
.au-note { margin: 16px 0 0; font-size: 12.5px; color: var(--au-mute); display: flex; gap: 8px; line-height: 1.5; }
.au-note i { color: #94A3B8; margin-top: 2px; }

/* ---------- form parts (recovery + sign-in) ---------- */
.au-form { display: grid; gap: 14px; }
.au-field label, .au-label { display: block; font-size: 13px; font-weight: 600; color: var(--au-ink); margin-bottom: 6px; }
.au-input { position: relative; display: flex; align-items: center; border: 1px solid var(--au-line); border-radius: 11px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.au-input > i { position: absolute; left: 14px; color: #94A3B8; font-size: 15px; pointer-events: none; }
.au-input input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; padding: 0 14px 0 42px; font: inherit; font-size: 15px; color: var(--au-ink); border-radius: 11px; }
.au-input:focus-within { border-color: var(--au-pri); box-shadow: 0 0 0 3px rgba(var(--b-primary-rgb, 250, 94, 1), .18); }
.au-input.is-bad { border-color: var(--au-bad); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.au-eye { flex: none; width: 44px; height: 44px; border: 0; background: none; color: #94A3B8; cursor: pointer; border-radius: 10px; }
.au-eye:hover, .au-eye:focus-visible { color: var(--au-ink); }
.au-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--au-mute); }
.au-btn { position: relative; height: 48px; border: 0; border-radius: 11px; background: var(--au-pri); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 20px -10px rgba(var(--b-primary-rgb, 250, 94, 1), .8); transition: background .15s, transform .15s; }
.au-btn:hover { background: var(--au-pri-dark); transform: translateY(-1px); }
.au-btn[disabled] { opacity: .85; cursor: progress; transform: none; }
.au-btn.is-busy span::before { content: ''; display: inline-block; width: 15px; height: 15px; margin-right: 9px; vertical-align: -2px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: au-spin .7s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
.au-alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 11px; font-size: 13.5px; line-height: 1.5; }
.au-alert i { margin-top: 2px; }
.au-alert.is-bad { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.au-alert.is-ok { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; margin-bottom: 14px; }
.au-caps { display: none; margin-top: 6px; font-size: 12px; color: #B45309; font-weight: 600; }
.au-caps.is-on { display: block; }

/* email / WhatsApp switch */
.au-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #F1F5F9; border-radius: 12px; }
.au-seg label { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #475569; cursor: pointer; margin: 0; }
.au-seg label input { position: absolute; opacity: 0; pointer-events: none; }
.au-seg label.is-on { background: #fff; color: var(--au-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.au-seg label .fa-whatsapp { color: #16A34A; }
.au-seg label:focus-within { outline: 2px solid var(--au-pri); outline-offset: 1px; }

/* 6-digit code */
.au-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.au-otp input { width: 100%; height: 56px; text-align: center; font: inherit; font-size: 24px; font-weight: 700; color: var(--au-ink); border: 1px solid var(--au-line); border-radius: 12px; outline: 0; }
.au-otp input:focus { border-color: var(--au-pri); box-shadow: 0 0 0 3px rgba(var(--b-primary-rgb, 250, 94, 1), .18); }
.au-otp.is-bad input { border-color: #FCA5A5; }
.au-resend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 13.5px; color: var(--au-mute); }
.au-dot { color: #CBD5E1; }

/* account choice */
.au-accounts { display: grid; gap: 8px; }
.au-acc { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--au-line); border-radius: 12px; cursor: pointer; margin: 0; }
.au-acc input { position: absolute; opacity: 0; }
.au-acc-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #FFF4EC; color: var(--au-pri-dark); font-weight: 700; flex: none; }
.au-acc-tx b { display: block; font-size: 14px; color: var(--au-ink); }
.au-acc-tx small { display: block; font-size: 12.5px; color: var(--au-mute); }
.au-acc-ok { margin-left: auto; color: var(--au-pri); opacity: 0; }
.au-acc:has(input:checked) { border-color: var(--au-pri); box-shadow: 0 0 0 3px rgba(var(--b-primary-rgb, 250, 94, 1), .15); }
.au-acc:has(input:checked) .au-acc-ok { opacity: 1; }
.au-acc:has(input:focus-visible) { outline: 2px solid var(--au-pri); outline-offset: 2px; }

/* password strength */
.au-meter { margin-top: 8px; }
.au-meter span { display: block; height: 5px; border-radius: 5px; background: #E2E8F0; position: relative; overflow: hidden; }
.au-meter span::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--c, #E2E8F0); border-radius: 5px; transition: width .2s, background .2s; }
.au-meter small { display: block; margin-top: 6px; font-size: 12px; color: var(--au-mute); }

/* ---------- sign-in page additions ---------- */
.au-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: #94A3B8; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.au-or::before, .au-or::after { content: ''; flex: 1; height: 1px; background: #E2E8F0; }
.au-google { min-height: 44px; display: flex; justify-content: center; }
.au-signin-msg { margin-bottom: 14px; }

@media (max-width: 480px) {
    .au-card { padding: 24px 20px 18px; border-radius: 18px; }
    .au-steps li { font-size: 0; gap: 0; justify-content: center; }
    .au-otp { gap: 6px; } .au-otp input { height: 50px; font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .au-btn, .au-input { transition: none; } .au-btn.is-busy span::before { animation: none; } }

/* the old login styles give every input / button full width: keep the new parts in shape */
.au-input input { width: auto !important; flex: 1 1 auto; border: 0 !important; box-shadow: none !important; background: transparent !important; height: 46px !important; margin: 0 !important; }
.au-input .au-eye { width: 44px !important; height: 44px !important; flex: 0 0 44px; margin: 0 2px 0 0 !important; padding: 0 !important; box-shadow: none !important; transform: none !important; background: none !important; }
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.au-row label { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; color: #334155; font-weight: 500; }
.au-row label input { width: 16px !important; height: 16px !important; margin: 0 !important; }
.au-row a { white-space: nowrap; }
.login-content .au-row a, .login-content .au-row label { margin: 0 !important; display: inline-flex !important; line-height: 1.4; }

/* phones (2026-10-09): the form's single column may never be wider than the card, and the card may shrink with the
   screen (the old login styles give .login-content a fixed width and no shrinking) */
.au-form { grid-template-columns: minmax(0, 1fr); }
.au-form > *, .au-field, .au-input, .au-row, .au-btn { min-width: 0; max-width: 100%; }
.au-row { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 767px) {
    .theme-fcnb-login .login, .login { max-width: 100%; }
    .login-group { min-width: 0; }
    .login-content { flex-shrink: 1 !important; min-width: 0; max-width: 100%; }
    .au-google { overflow: hidden; }
}
@media (max-width: 360px) {
    .theme-fcnb-login .login-content { padding: 22px 16px 18px !important; }
    .au-card { padding: 22px 16px 16px; }
}
.au-otp { grid-template-columns: repeat(6, minmax(0, 1fr)); } .au-otp input { min-width: 0; padding: 0; }
