/* FinXure — sign-in family (login, register, forgot PIN, reset, verify email). Tokens only.
   Keeps the pages' existing class names, so their markup and scripts are untouched. */
body.fxp-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px 14px; background: var(--bg-body); overflow-x: hidden; }
body.fxp-auth:has(.login-wrap), body.fxp-auth:has(.register-wrap) { padding: 0; align-items: stretch; }
.bg, .bg-orb { display: none; }

/* logo word-mark (text from APP_NAME + a mark) */
.brand-logo, .card-logo, .logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.brand-logo::before, .card-logo::before, .logo::before { content: "F"; width: 28px; height: 28px; border-radius: 9px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: .9rem; flex: none; }
.brand-logo { font-size: 1.35rem; margin-bottom: 2.6rem; } .card-logo { font-size: .95rem; margin-bottom: 1.2rem; } .logo { font-size: 1rem; margin-bottom: 1.4rem; }
@media (min-width: 900px) { .card-logo { display: none; } }

/* split layout */
.login-wrap, .register-wrap { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; padding: 28px 20px; min-height: 100vh; }
.brand-panel { display: none; position: fixed; left: 0; top: 0; bottom: 0; width: 420px; padding: 3rem 2.5rem; background: var(--bg-surface); border-right: 1px solid var(--border); flex-direction: column; justify-content: center; z-index: 2; }
@media (min-width: 900px) { .brand-panel { display: flex; } .login-wrap, .register-wrap { padding-left: 460px; } }
.brand-headline { font-size: 2rem; font-weight: 800; line-height: 1.12; letter-spacing: -.035em; color: var(--text); margin-bottom: 1rem; }
.brand-headline span { background: linear-gradient(100deg, var(--info), var(--success)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: .95rem; color: var(--text-2); line-height: 1.7; margin-bottom: 2.2rem; }
.brand-features { display: flex; flex-direction: column; gap: .85rem; }
.bf-item { display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--text-2); }
.bf-icon { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--success-bg) !important; color: var(--success-text); font-size: .8rem; font-weight: 800; }
.bf-icon::before { content: "✓"; }
.brand-footer { margin-top: auto; font-size: .8rem; color: var(--text-3); } .brand-footer a { color: var(--text-2); }
.plan-highlight { background: var(--bg-body); border-radius: var(--r-container); padding: 1rem 1.1rem; margin-bottom: 1.6rem; }
.plan-highlight .ph-title { font-size: .75rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.ph-row { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text-2); margin-bottom: .3rem; } .ph-row:last-child { margin-bottom: 0; }
.ph-row .tick { color: var(--success-text); font-weight: 800; }

/* card */
.card, .box { position: relative; background: var(--bg-card); border-radius: var(--r-page); box-shadow: var(--shadow-med); padding: 2.3rem 2rem; width: 100%; max-width: 400px; }
.register-wrap .card { max-width: 440px; }
.login-wrap .card, .box { text-align: center; }
.box { max-width: 460px; padding: 2.5rem 2rem; }
.card h1, .box h1, .card h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); margin: 0 0 .3rem; line-height: 1.15; }
.card h2 { font-size: 1.35rem; }
.subtitle, .sub { font-size: .9rem; color: var(--text-2); margin: 0 0 1.6rem; line-height: 1.55; }
.step-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; } .step-sub { font-size: .85rem; color: var(--text-2); margin-bottom: 1.4rem; }
.icon, .success-icon { font-size: 2.6rem; margin-bottom: .9rem; text-align: center; }

/* fields */
.form-group { margin-bottom: 1.1rem; text-align: left; }
body.fxp-auth label { display: block; font-size: .8125rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
body.fxp-auth input[type=text], body.fxp-auth input[type=email], body.fxp-auth input[type=password], body.fxp-auth input[type=tel], body.fxp-auth input[type=number], .form-group input {
  width: 100%; padding: .72rem .9rem; background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: var(--r-element); font: inherit; font-size: 1rem; color: var(--text); transition: border-color .15s, box-shadow .15s; }
body.fxp-auth input::placeholder { color: var(--text-3); }
body.fxp-auth input:focus, .form-group input:focus { outline: none; border-color: var(--info); box-shadow: 0 0 0 4px var(--info-bg); }
.form-group input.pin-input, input.pin-input { letter-spacing: .35em; font-size: 1.2rem; font-family: var(--font-mono, ui-monospace, monospace); text-align: center; }
.input-hint { font-size: .75rem; color: var(--text-3); margin-top: .3rem; } .input-hint.ok { color: var(--success-text); } .input-hint.err { color: var(--error-text); }
.two-col, .pin-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.terms-row { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1.2rem; cursor: pointer; text-align: left; }
.terms-row input[type=checkbox] { width: 16px; height: 16px; margin-top: 3px; flex: none; accent-color: var(--accent); cursor: pointer; }
.terms-row span { font-size: .82rem; color: var(--text-2); line-height: 1.5; } .terms-row a, .hint a, .back, .card-footer a { color: var(--info-text); text-decoration: underline; text-underline-offset: 2px; }

/* PIN pad (login) */
.divider { display: flex; align-items: center; gap: .7rem; margin: .3rem 0 1.1rem; color: var(--text-3); font-size: .78rem; font-weight: 600; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); }
.pin-display { display: flex; justify-content: center; gap: .65rem; margin-bottom: 1.1rem; }
.pin-dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--border-strong); background: transparent; transition: background .15s, border-color .15s, transform .1s; }
.pin-dot.filled { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-bottom: 1rem; }
.key { background: var(--bg-body); border: 0; border-radius: var(--r-container); padding: .95rem; font: inherit; font-size: 1.2rem; font-weight: 700; color: var(--text); cursor: pointer; transition: background .12s, transform .1s; user-select: none; }
.key:hover { background: var(--bg-muted); } .key:active { transform: scale(.94); }
.key-zero { grid-column: 2; }
.key-del { background: var(--error-bg); color: var(--error-text); } .key-del:hover { background: var(--error-bg); filter: brightness(.96); }
.key-ok { background: var(--accent); color: var(--on-accent); font-size: .9rem; box-shadow: var(--shadow-low); } .key-ok:hover { background: var(--accent); box-shadow: var(--shadow-med); }
.key-ok:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; transform: none; }

/* buttons */
.btn, .btn-primary, .btn-danger, .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; height: 48px; padding: 0 1.2rem; border-radius: var(--r-container); border: 1px solid transparent; font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s; }
.btn, .btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-low); }
.btn:hover, .btn-primary:hover { box-shadow: var(--shadow-med); transform: translateY(-1px); }
.btn-outline { background: var(--bg-surface); color: var(--text); border-color: var(--border-strong); margin-top: .6rem; } .btn-outline:hover { background: var(--bg-muted); }
.btn-danger { background: var(--error); color: #fff; } .btn-danger:hover { filter: brightness(.95); }
.box .btn, .box .btn-primary, .box .btn-outline { width: auto; min-width: 200px; }

/* messages */
.error, .alert-err { background: var(--error-bg); color: var(--error-text); padding: .75rem .95rem; border-radius: var(--r-element); font-size: .875rem; margin-bottom: 1rem; text-align: left; }
.timeout-msg, .warn-box { background: var(--warning-bg); color: var(--warning-text); padding: .75rem .95rem; border-radius: var(--r-element); font-size: .875rem; margin-bottom: 1rem; line-height: 1.6; text-align: left; }
.warn-box ul { padding-left: 1.1rem; margin-top: .4rem; } .warn-box li { margin-bottom: .2rem; }
.info, .alert-info { background: var(--info-bg); color: var(--info-text); padding: .75rem .95rem; border-radius: var(--r-element); font-size: .875rem; margin-bottom: 1rem; line-height: 1.55; text-align: left; }
.alert-ok { background: var(--success-bg); color: var(--success-text); padding: .75rem .95rem; border-radius: var(--r-element); font-size: .875rem; margin-bottom: 1rem; }
.success-box { text-align: center; padding: .5rem 0 .3rem; }
.success-title { font-size: 1.2rem; font-weight: 800; text-align: center; color: var(--success-text); margin-bottom: .4rem; }
.success-sub { font-size: .9rem; color: var(--text-2); text-align: center; line-height: 1.6; margin-bottom: 1.5rem; }
.hint { font-size: .8rem; color: var(--text-3); margin-top: 1rem; }
.back { display: block; text-align: center; margin-top: 1rem; font-size: .85rem; }
.card-footer { text-align: center; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-2); }

@media (max-width: 479px) {
  .login-wrap, .register-wrap { padding: 28px 12px; align-items: flex-start; }
  .card, .box { padding: 1.6rem 1.15rem; border-radius: var(--r-container); max-width: 100%; }
  body.fxp-auth { align-items: flex-start; padding-top: 28px; }
  .key { padding: .8rem; font-size: 1.1rem; }
}
@media (max-width: 380px) { .two-col { grid-template-columns: 1fr; } }
