/* Login and sign-up pages. Tokens follow the BizyGrow brand palette guide. */
:root { --navy: #0F2338; --navy-deep: #091827; --navy-soft: #16314D; --green: #089E5A; --green-deep: #047857; --green-glow: #34D399; --mint: #D1FAE5; --mint-soft: #ECFDF5; --canvas: #F8FAFC; --ink: #0F2338; --ink-2: #475569; --ink-3: #64748B; --line: #E2E8F0; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; } ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; } img { max-width: 100%; display: block; } button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green-glow); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.auth { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
@media (min-width: 960px) { .auth { grid-template-columns: minmax(420px, 1.05fr) 1fr; grid-template-rows: 1fr; } }

/* ----- left: brand panel ----- */
.aside { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 480px at 85% -10%, rgba(8, 158, 90, .42), transparent 60%), radial-gradient(700px 420px at -10% 110%, rgba(52, 211, 153, .14), transparent 60%), var(--navy-deep); padding: 22px 20px; display: flex; flex-direction: column; gap: 28px; }
.aside::after { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.aside > * { position: relative; z-index: 1; }
.aside-logo img { height: 40px; width: auto; }
.aside-body, .aside-foot { display: none; }
@media (min-width: 960px) {
  .aside { padding: 44px 52px; justify-content: space-between; }
  .aside-body { display: block; }
  .aside-foot { display: flex; gap: 18px; font-size: 13px; color: #8DA2B8; }
  .aside-foot a:hover { color: #fff; }
}
.aside h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; max-width: 520px; }
.aside .lead { margin-top: 16px; max-width: 460px; color: #B6C4D4; font-size: 16.5px; }

/* mini product visual (example data) */
.viz { margin-top: 36px; position: relative; max-width: 470px; }
.viz-card { background: #fff; color: var(--ink); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.viz-h { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.viz-h small { font-weight: 600; color: var(--ink-3); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi span { display: block; font-size: 12px; color: var(--ink-3); }
.kpi b { font-size: 22px; letter-spacing: -.02em; }
.kpi.g { background: var(--mint-soft); border-color: var(--mint); } .kpi.g b { color: var(--green-deep); }
.spark { display: block; width: 100%; height: 64px; margin-top: 12px; }
.spark path:first-child { fill: rgba(8, 158, 90, .12); } .spark path:last-child { fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.viz-chip { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 13px; box-shadow: 0 18px 40px -14px rgba(0,0,0,.55); }
.viz-chip b { display: block; font-size: 13px; } .viz-chip small { color: var(--ink-3); font-size: 12px; }
.viz-chip .ok { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.chip-a { right: -26px; top: -22px; } .chip-b { left: -24px; bottom: -24px; }
.viz-note { margin-top: 38px; font-size: 12.5px; color: #8DA2B8; }

.perks { margin-top: 34px; display: grid; gap: 18px; max-width: 480px; }
.perks li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.perks .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(52, 211, 153, .14); color: var(--green-glow); display: inline-flex; align-items: center; justify-content: center; }
.perks b { display: block; font-size: 15.5px; } .perks span { color: #B6C4D4; font-size: 14.5px; }
.price-pill { margin-top: 34px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 14px; }
.price-pill b { color: var(--green-glow); font-size: 16px; }

/* ----- right: form panel ----- */
.panel { display: flex; align-items: center; justify-content: center; padding: 36px 20px 48px; background: #fff; }
@media (min-width: 960px) { .panel { padding: 48px; } }
.card { width: 100%; max-width: 420px; }
.card h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.card .sub { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.alert { margin-top: 22px; padding: 12px 14px; border-radius: 12px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert.err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.alert.ok { background: var(--mint-soft); border: 1px solid #A7F3D0; color: var(--green-deep); }
.form { margin-top: 26px; display: grid; gap: 16px; }
.fld label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.fld label em { font-style: normal; font-weight: 500; color: var(--ink-3); }
.inp { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #CBD5E1; border-radius: 12px; font: inherit; font-size: 15.5px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.inp::placeholder { color: #94A3B8; }
.inp:hover { border-color: #94A3B8; }
.inp:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(8, 158, 90, .16); }
.pw { position: relative; } .pw .inp { padding-right: 78px; }
.pw button { position: absolute; right: 8px; top: 8px; height: 34px; padding: 0 12px; border: 0; background: transparent; color: var(--ink-3); font-size: 13px; font-weight: 700; border-radius: 8px; }
.pw button:hover { background: var(--canvas); color: var(--ink); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.row a { color: var(--green-deep); font-weight: 700; } .row a:hover { text-decoration: underline; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.chk input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex: none; }
.chk a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border: 0; border-radius: 12px; font-weight: 800; font-size: 15.5px; background: var(--green); color: #fff; box-shadow: 0 12px 26px -12px rgba(8, 158, 90, .8); transition: background .15s, transform .15s, box-shadow .15s; width: 100%; }
.btn:hover { background: var(--green-deep); transform: translateY(-1px); } .btn:active { transform: none; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid #CBD5E1; box-shadow: none; }
.btn-ghost:hover { background: var(--canvas); }
.alt { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; font-size: 14.5px; color: var(--ink-2); }
.alt a { color: var(--green-deep); font-weight: 800; } .alt a:hover { text-decoration: underline; }
.fine { margin-top: 16px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.fine a { text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 20px; font-size: 14px; }
.form-msg.is-err { color: #B91C1C; }

/* success state after sign-up */
.done { text-align: left; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px var(--mint); }
.done h1 { margin-top: 22px; }
.next { margin-top: 26px; display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.next li { position: relative; padding: 0 0 20px 24px; }
.next li::before { content: ''; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.next b { display: block; font-size: 15px; } .next span { color: var(--ink-2); font-size: 14.5px; }
.done .btn { margin-top: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .viz-card { animation: float-a 8s ease-in-out infinite; } .chip-a { animation: float-b 6.5s ease-in-out infinite; } .chip-b { animation: float-a 7.2s ease-in-out infinite; }
  .perks li { animation: rise .7s both; } .perks li:nth-child(2) { animation-delay: .12s; } .perks li:nth-child(3) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes float-a { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
  @keyframes float-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
  .spark path:last-child { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s .3s ease forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}
.form-msg:empty { display: none; }
