/* =========================================================================
   Beyr Invoicing — auth.css  (sign in / register / verify / reset)
   Split layout: a calm brand panel with a live "payment received" card,
   and a focused form panel.
   ========================================================================= */

.auth-wrap { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100vh; }

/* ---- Brand panel ------------------------------------------------------- */
.auth-brand {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: clamp(28px, 4vw, 56px);
    color: #EEF0FA;
    background:
        radial-gradient(90% 70% at 85% 10%, rgba(var(--accent-rgb), .35), transparent 60%),
        radial-gradient(80% 70% at 10% 95%, rgba(var(--accent-rgb), .40), transparent 60%),
        #050506;
    isolation: isolate;
}
.auth-brand::before {           /* fine grid texture */
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
    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: 44px 44px;
    mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.auth-brand .orb { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; animation: mh-drift 16s ease-in-out infinite alternate; }
.auth-brand .orb.o1 { width: 340px; height: 340px; top: -80px; right: -60px; background: rgba(var(--accent-rgb), .35); }
.auth-brand .orb.o2 { width: 300px; height: 300px; bottom: -60px; left: -40px; background: rgba(var(--accent-rgb), .4); animation-delay: -6s; }
@keyframes mh-drift { to { transform: translate(30px, 24px) scale(1.08); } }
.auth-brand .brand-word { color: #fff; }
.auth-brand .content { max-width: 460px; }
.auth-brand h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.04em; margin: 56px 0 14px; line-height: 1.02; }
.auth-brand p { color: rgba(238,240,250,.72); font-size: 1.02rem; max-width: 40ch; }
.auth-points { margin-top: 28px; display: grid; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 12px; color: rgba(238,240,250,.9); font-size: .95rem; }
.auth-points li .tick { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #8FF0CB; font-size: .8rem; }
.auth-receipt {
    margin-top: 40px; max-width: 360px; padding: 18px; border-radius: 18px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
    animation: mh-rise 1s .3s var(--ease-out) both;
}
.auth-receipt .ar-top { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: rgba(238,240,250,.65); }
.auth-receipt .ar-paid { display: inline-flex; align-items: center; gap: 6px; color: #8FF0CB; font-weight: 600; }
.auth-receipt .ar-amt { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: #fff; letter-spacing: -.04em; margin: 8px 0 12px; font-variant-numeric: tabular-nums; }
.auth-receipt .ar-split { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.08); }
.auth-receipt .ar-split i { display: block; height: 100%; }
.auth-receipt .ar-split i:first-child { width: 0; background: var(--metal); animation: mh-grow 1.4s .9s var(--ease-out) forwards; --w: 94%; }
.auth-receipt .ar-split i:last-child { width: 0; background: #FFB547; animation: mh-grow 1s 2.1s var(--ease-out) forwards; --w: 6%; }
.auth-receipt .ar-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: .76rem; color: rgba(238,240,250,.6); }
@keyframes mh-grow { to { width: var(--w); } }
@keyframes mh-rise { from { opacity: 0; transform: translateY(18px); } }
.auth-brand .foot { font-size: .8rem; color: rgba(238,240,250,.5); }

/* ---- Form panel -------------------------------------------------------- */
.auth-form-panel { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 5vw, 64px) clamp(18px, 4vw, 48px); position: relative; }
.auth-form-panel > .theme-fab { position: absolute; top: 20px; right: 20px; }
.auth-card { width: 100%; max-width: 420px; animation: mh-rise .7s var(--ease-out) both; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); letter-spacing: -.035em; margin-bottom: 8px; }
.auth-card .sub { color: var(--text-soft); margin-bottom: 26px; }
.auth-card .btn-primary.btn-block { margin-top: 6px; height: 48px; }
.auth-card .switch { text-align: center; margin-top: 22px; color: var(--text-soft); font-size: .9rem; }
.auth-card .switch a, .auth-meta a { color: var(--iris); font-weight: 600; }
.auth-card .switch a:hover, .auth-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-meta { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 18px; font-size: .88rem; }

/* OTP */
.otp-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 8px 0 20px; }
.otp-row input {
    height: 58px; text-align: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
    border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.otp-row input:focus { outline: none; border-color: var(--iris); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); transform: translateY(-2px); }

/* Password strength */
.pw-meter { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.pw-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--danger); transition: width .35s var(--ease), background-color .35s; }

/* Register sections */
.step-legend {
    display: flex; align-items: center; gap: 12px; margin: 30px 0 16px;
    font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; color: var(--text);
}
.step-legend::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.step-legend:first-of-type { margin-top: 6px; }

@media (max-width: 900px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-brand { position: relative; height: auto; min-height: 0; padding: 22px 24px; }
    .auth-brand .content > :not(.brand), .auth-brand .foot, .auth-receipt { display: none; }
}

/* Obsidian & chrome overrides */
.auth-brand { background: radial-gradient(80% 60% at 85% 10%, rgba(255,255,255,.08), transparent 60%), radial-gradient(70% 60% at 10% 95%, rgba(255,255,255,.05), transparent 60%), #050506; }
.auth-brand .orb.o1, .auth-brand .orb.o2 { background: rgba(255,255,255,.06); }
.auth-points li .tick { background: linear-gradient(145deg, #2B2C31, #111113); border-color: rgba(255,255,255,.18); color: #E4E4EA; }
.auth-receipt { background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%), linear-gradient(rgba(255,255,255,.035), rgba(255,255,255,.035));
    background-size: 300% 100%, auto; animation: mh-rise 1s .3s var(--ease-out) both, mh-receipt-glint 7s 2s var(--ease-out) infinite; border-color: rgba(255,255,255,.14); }
@keyframes mh-receipt-glint { 0% { background-position: 150% 0, 0 0; } 30%, 100% { background-position: -50% 0, 0 0; } }
.auth-receipt .ar-amt { background: var(--metal); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-receipt .ar-paid { color: #3DDC97; }

/* ---- Sign-up wizard ----------------------------------------------------- */
.wiz-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 22px; }
.wiz-dot { position: relative; display: grid; justify-items: start; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; color: var(--text-mute); font: inherit; }
.wiz-dot::before { content: ""; width: 100%; height: 4px; border-radius: 99px; background: var(--surface-3); transition: background .35s; }
.wiz-dot span { display: none; }
.wiz-dot em { font-style: normal; font-size: .78rem; font-weight: 600; }
.wiz-dot.done::before, .wiz-dot.on::before { background: var(--metal); }
.wiz-dot.on, .wiz-dot.done { color: var(--text); }
.wiz-step { animation: mh-rise .45s var(--ease-out) both; }
.wiz-step > .step-legend:first-child { margin-top: 0; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.wiz-nav .btn { min-width: 140px; }
@media (max-width: 560px) { .wiz-dot em { font-size: .7rem; } }
