/* ONE TAX NETWORK — Client Portal · Sign in / Create account / Forgot password
   Deep indigo art panel + saffron actions · mobile-first */

:root {
    --ax-ink: #0F172A;
    --ax-ink-2: #334155;
    --ax-muted: #64748B;
    --ax-line: #E5E7F0;
    --ax-page: #F5F6FB;
    --ax-indigo: #1E1B4B;
    --ax-indigo-2: #312E81;
    --ax-indigo-3: #4338CA;
    --ax-saffron: #EA580C;
    --ax-saffron-2: #F97316;
    --ax-ok: #15803D;
    --ax-bad: #DC2626;
    --ax-radius: 16px;
    --ax-ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ax-body { margin: 0; min-height: 100dvh; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ax-ink); background: var(--ax-page); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
::selection { background: #FED7AA; color: var(--ax-indigo); }

.ax { display: grid; grid-template-columns: minmax(420px, 46%) 1fr; min-height: 100dvh; }

/* ---------- Art panel ---------- */
.ax-art { position: sticky; top: 0; height: 100dvh; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 56px); background: var(--ax-indigo); color: #fff; }
.ax-art-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent 85%); }
.ax-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; }
.ax-orb-a { width: 380px; height: 380px; right: -120px; top: -90px; background: #4F46E5; animation: axFloat 12s ease-in-out infinite; }
.ax-orb-b { width: 300px; height: 300px; left: -110px; bottom: -80px; background: #C2410C; opacity: .45; animation: axFloat 14s ease-in-out infinite reverse; }
@keyframes axFloat { 50% { transform: translate(24px, 18px) scale(1.06); } }

.ax-brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.ax-logo { display: grid; place-items: center; background: #fff; border-radius: 12px; padding: 6px 8px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.ax-logo img { display: block; width: 96px; height: auto; }
.ax-brand-text strong { display: block; font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.ax-brand-text small { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }

.ax-art-body { margin: auto 0; padding: 40px 0; max-width: 520px; }
.ax-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #FDBA74; }
.ax-kicker span { width: 26px; height: 2px; border-radius: 2px; background: var(--ax-saffron-2); }
.ax-h1 { margin: 0; font-size: clamp(2.1rem, 3.4vw, 3.2rem); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; }
.ax-h1 em { font-style: normal; color: var(--ax-saffron-2); }
.ax-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.ax-points li { display: flex; align-items: center; gap: 13px; font-size: 14px; color: rgba(255,255,255,.8); }
.ax-pt-ico { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #FDBA74; font-size: 13px; }

.ax-preview { margin-top: 34px; max-width: 400px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); animation: axRise .7s var(--ax-ease) .2s both; }
.ax-pv-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.ax-pv-head em { margin-left: auto; font-style: normal; color: rgba(255,255,255,.45); }
.ax-pv-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.ax-pv-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.ax-pv-row i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); font-size: 12px; }
.ax-pv-row span { flex: 1; color: rgba(255,255,255,.85); }
.ax-pv-row b { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.ax-pv-row b.ok { background: rgba(74,222,128,.15); color: #86EFAC; }
.ax-pv-row b.wip { background: rgba(251,191,36,.15); color: #FCD34D; }
.ax-art-foot { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }

/* ---------- Form side ---------- */
.ax-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 48px); }
.ax-mobile-brand { display: none; }
.ax-card { width: 100%; max-width: 460px; padding: 32px; background: #fff; border: 1px solid var(--ax-line); border-radius: 22px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 24px 48px -28px rgba(30,27,75,.25); animation: axRise .55s var(--ax-ease) both; }
@keyframes axRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.ax-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 26px; border-radius: 12px; background: #F1F2F8; }
.ax-tabs a { position: relative; z-index: 1; padding: 10px 8px; text-align: center; text-decoration: none; font-size: 13.5px; font-weight: 700; color: var(--ax-muted); border-radius: 9px; transition: color .2s ease; }
.ax-tabs a.is-active { color: var(--ax-indigo); }
.ax-tabs a:hover { color: var(--ax-indigo); }
.ax-tabs-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.1); transition: transform .3s var(--ax-ease); }
.ax-tabs[data-active="register"] .ax-tabs-pill { transform: translateX(100%); }
.ax-tabs[data-active="forgot"] .ax-tabs-pill { display: none; }

.ax-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ax-saffron); }
.ax-eyebrow i { font-size: 12px; }
.ax-title { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; color: var(--ax-ink); }
.ax-lede { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--ax-muted); }
.ax-lede strong { color: var(--ax-ink-2); }

.ax-steps { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.ax-step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ax-muted); white-space: nowrap; }
.ax-step b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ax-line); background: #fff; font-size: 12px; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.ax-step.is-on { color: var(--ax-indigo); }
.ax-step.is-on b { background: var(--ax-indigo-2); border-color: var(--ax-indigo-2); color: #fff; }
.ax-step.is-done b { background: #DCFCE7; border-color: #86EFAC; color: var(--ax-ok); }
.ax-step-line { flex: 1; height: 2px; min-width: 16px; border-radius: 2px; background: var(--ax-line); }
.ax-step-line.is-done { background: #86EFAC; }

.ax-form { margin-top: 24px; display: grid; gap: 16px; }
.ax-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ax-field label { display: block; margin-bottom: 7px; font-size: 12.5px; font-weight: 700; color: var(--ax-ink-2); }
.ax-field label .opt { font-weight: 500; color: var(--ax-muted); }
.ax-input { position: relative; display: flex; align-items: center; }
.ax-input-ico { position: absolute; left: 15px; font-size: 13px; color: #94A3B8; pointer-events: none; transition: color .2s ease; }
.ax-input input { width: 100%; height: 50px; padding: 0 46px 0 42px; border: 1.5px solid var(--ax-line); border-radius: 12px; background: #FAFBFE; font: inherit; font-size: 15px; font-weight: 500; color: var(--ax-ink); outline: none; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; -webkit-appearance: none; appearance: none; }
.ax-input input[type="date"] { padding-right: 12px; }
.ax-input input::placeholder { color: #A8B0C2; font-weight: 400; }
.ax-input input:hover { border-color: #CDD2E3; }
.ax-input input:focus { background: #fff; border-color: var(--ax-saffron-2); box-shadow: 0 0 0 4px rgba(249,115,22,.14); }
.ax-input:focus-within .ax-input-ico { color: var(--ax-saffron); }
.ax-eye { position: absolute; right: 6px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 9px; background: none; color: #94A3B8; font-size: 15px; cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.ax-eye:hover { color: var(--ax-indigo); background: #F1F2F8; }
.ax-hint { margin: 6px 0 0; font-size: 12px; color: var(--ax-muted); }
.ax-field-msg { display: flex; align-items: center; gap: 6px; margin: 7px 0 0; font-size: 12px; font-weight: 600; }
.ax-field-msg[hidden] { display: none; }
.ax-field-msg.is-warn { color: #B45309; }
.ax-field-msg.is-ok { color: var(--ax-ok); }
.ax-field-msg.is-bad { color: var(--ax-bad); }

.ax-strength { margin-top: 8px; }
.ax-strength-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.ax-strength-bar span { height: 4px; border-radius: 4px; background: var(--ax-line); transition: background-color .25s ease; }
.ax-strength small { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--ax-muted); }
.ax-strength[data-level="0"] small { color: var(--ax-bad); }
.ax-strength[data-level="1"] span:nth-child(-n+1) { background: #EF4444; }
.ax-strength[data-level="2"] span:nth-child(-n+2) { background: #F59E0B; }
.ax-strength[data-level="3"] span:nth-child(-n+3) { background: #84CC16; }
.ax-strength[data-level="4"] span { background: #16A34A; }

.ax-row-end { display: flex; justify-content: flex-end; margin-top: -4px; }
.ax-link { font-size: 13px; font-weight: 700; color: var(--ax-saffron); text-decoration: none; border-radius: 6px; transition: color .2s ease; }
.ax-link:hover { color: #C2410C; text-decoration: underline; text-underline-offset: 3px; }

.ax-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; margin-top: 4px; border: 0; border-radius: 12px; background: var(--ax-saffron); color: #fff; font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .01em; cursor: pointer; box-shadow: 0 12px 24px -12px rgba(234,88,12,.7); transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.ax-btn:hover { background: #C2410C; transform: translateY(-1px); box-shadow: 0 16px 28px -12px rgba(234,88,12,.75); }
.ax-btn:active { transform: translateY(0); }
.ax-btn:focus-visible { outline: 3px solid #FDBA74; outline-offset: 2px; }
.ax-btn i { transition: transform .2s ease; }
.ax-btn:hover i { transform: translateX(3px); }
.ax-btn.is-busy { pointer-events: none; color: transparent; }
.ax-btn.is-busy::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: axSpin .7s linear infinite; }
@keyframes axSpin { to { transform: rotate(360deg); } }
.ax-btn-ghost { display: block; width: 100%; margin-top: 12px; padding: 10px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--ax-muted); cursor: pointer; border-radius: 10px; transition: color .2s ease, background-color .2s ease; }
.ax-btn-ghost:hover { color: var(--ax-indigo); background: #F1F2F8; }

.ax-alert { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; font-weight: 600; animation: axRise .4s var(--ax-ease) both; }
.ax-alert i { margin-top: 2px; }
.ax-alert-ok { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }
.ax-alert-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

.ax-alt { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--ax-line); text-align: center; font-size: 13.5px; color: var(--ax-muted); }
.ax-alt a { margin-left: 4px; }
.ax-note { display: flex; gap: 10px; margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: #F7F8FC; font-size: 12px; line-height: 1.6; color: var(--ax-muted); }
.ax-note i { margin-top: 3px; color: var(--ax-indigo-3); }

.ax-services { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 520px; margin: 26px 0 0; padding: 0; }
.ax-services li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--ax-line); font-size: 11.5px; font-weight: 600; color: var(--ax-ink-2); }
.ax-services i { font-size: 11px; color: var(--ax-saffron); }
.ax-copy { display: none; margin: 18px 0 0; font-size: 11.5px; color: var(--ax-muted); }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
    .ax { grid-template-columns: minmax(340px, 40%) 1fr; }
    .ax-preview { display: none; }
    .ax-h1 { font-size: 2.2rem; }
}

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
    .ax { display: block; }
    .ax-art { display: none; }
    .ax-main { min-height: 100dvh; justify-content: flex-start; padding: 0 0 calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(var(--ax-indigo) 0 210px, var(--ax-page) 210px); }
    .ax-mobile-brand { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; padding: calc(22px + env(safe-area-inset-top)) 20px 78px; color: #fff; }
    .ax-mobile-brand img { width: 74px; height: auto; padding: 5px 6px; border-radius: 10px; background: #fff; }
    .ax-mobile-brand strong { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
    .ax-mobile-brand small { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
    .ax-card { width: calc(100% - 28px); max-width: 520px; margin-top: -56px; padding: 22px 20px 24px; border-radius: 20px; }
    .ax-title { font-size: 23px; }
    .ax-services { padding: 0 14px; }
    .ax-copy { display: block; }
}
@media (max-width: 460px) {
    .ax-form-grid { grid-template-columns: 1fr; }
    .ax-card { width: calc(100% - 20px); padding: 20px 16px 22px; }
    .ax-step span { display: none; }
    .ax-step.is-on span { display: inline; }
    .ax-services li { font-size: 11px; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .ax-card, .ax-preview, .ax-alert, .ax-orb { animation: none; }
}
