/* ─── Variables (idênticas ao app) ─────────────────────────────────────── */
:root {
    --crimson: #8B0000;
    --crimson-light: #A80000;
    --crimson-dark: #5A0000;
    --crimson-faint: rgba(139, 0, 0, 0.07);
    --crimson-soft: rgba(139, 0, 0, 0.20);
    --crimson-glow: rgba(139, 0, 0, 0.35);

    --bg: #F3EFEF;
    --surface: #EDE8E8;
    --card: #FFFFFF;
    --border: #DDD6D6;
    --border-light: #EDE8E8;

    --text-1: #1A0F0F;
    --text-2: #5C4A4A;
    --text-3: #9B8585;
    --text-inv: #FFFFFF;

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 9999px;

    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(139, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 20px rgba(139, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(139, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 24px 56px rgba(139, 0, 0, 0.20), 0 8px 24px rgba(0, 0, 0, 0.14);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --bg: #0E1117;
    --surface: #1A2030;
    --card: #1E2738;
    --border: #2A3548;
    --border-light: #243044;
    --text-1: #EDF2F8;
    --text-2: #8BA0BC;
    --text-3: #546880;
    --crimson-faint: rgba(139, 0, 0, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
    --shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.65);
}

/* ─── Base ──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text-1);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--crimson-soft);
    color: var(--text-1);
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ─── Animations ────────────────────────────────────────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-12px) rotate(1.5deg);
    }

    66% {
        transform: translateY(-6px) rotate(-1deg);
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-18px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: .6;
        transform: scale(1)
    }

    50% {
        opacity: 1;
        transform: scale(1.05)
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: scale(0)
    }

    40% {
        transform: scale(1)
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmerBg {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

@keyframes checkPop {
    0% {
        transform: scale(0) rotate(-15deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.2) rotate(5deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ─── Page layout ───────────────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ─── Left panel (branding) ─────────────────────────────────────────────── */
.brand-panel {
    position: relative;
    background: linear-gradient(145deg, var(--crimson-dark) 0%, var(--crimson) 45%, #C00000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 56px;
    overflow: hidden;
    min-height: 100vh;
}

/* Animated background mesh */
.brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 80%, rgba(0, 0, 0, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 60% 10%, rgba(255, 200, 200, 0.1) 0%, transparent 50%);
}

/* Decorative grid lines */
.brand-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 30%, transparent 100%);
}

/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.orb-1 {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -60px;
    animation: floatSlow 7s ease-in-out infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    bottom: 60px;
    left: -40px;
    animation: floatSlow 9s ease-in-out infinite reverse;
}

.orb-3 {
    width: 120px;
    height: 120px;
    top: 45%;
    right: 15%;
    animation: floatSlow 6s ease-in-out infinite;
}

/* Brand content */
.brand-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    animation: fadeUp .6s var(--ease) both;
}

/* Logo in brand panel */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 56px;
}

.brand-logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform .3s var(--spring);
}

.brand-logo-mark:hover {
    transform: scale(1.1) rotate(-5deg);
}

.brand-logo-text {
    font-size: 26px;
    font-weight: 800;
    color: white;
    letter-spacing: -.04em;
}

.brand-logo-text span {
    color: rgba(255, 200, 200, 0.9);
}

/* Big headline */
.brand-headline {
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 800;
    color: white;
    line-height: 1.18;
    letter-spacing: -.03em;
    margin-bottom: 20px;
}

.brand-headline em {
    font-style: normal;
    background: linear-gradient(90deg, rgba(255, 200, 200, 0.95), rgba(255, 255, 255, 0.95));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 48px;
}

/* Feature list */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 14px 18px;
    backdrop-filter: blur(6px);
    transition: all .25s var(--ease);
    animation: fadeUp .5s var(--ease) both;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(4px);
}

.feature-item:nth-child(1) {
    animation-delay: .1s;
}

.feature-item:nth-child(2) {
    animation-delay: .2s;
}

.feature-item:nth-child(3) {
    animation-delay: .3s;
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: white;
    flex-shrink: 0;
}

.feature-text-title {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.feature-text-sub {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.58);
}

/* Bottom testimonial */
.brand-testimonial {
    margin-top: 44px;
    padding: 20px 22px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeUp .6s var(--ease) .4s both;
    width: 100%;
}

.testimonial-text {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 12px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.testimonial-name {
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.testimonial-role {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.5);
}

.stars {
    color: #FCD34D;
    font-size: 11px;
    margin-bottom: 2px;
}

/* ─── Right panel (form) ────────────────────────────────────────────────── */
.form-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
}

/* Top-right controls */
.form-panel-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 32px;
    gap: 10px;
    flex-shrink: 0;
}

/* Dark mode btn */
.dark-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 15px;
    transition: all .2s var(--ease);
}

.dark-btn:hover {
    background: var(--crimson-faint);
    color: var(--crimson);
    border-color: var(--crimson-soft);
}

/* Switch page btn */
.switch-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: var(--card);
    color: var(--text-2);
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s var(--ease);
}

.switch-btn:hover {
    border-color: var(--crimson-soft);
    color: var(--crimson);
    background: var(--crimson-faint);
}

/* Form container */
.form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 40px 40px;
}

.form-card {
    width: 100%;
    max-width: 440px;
}

/* Form header */
.form-header {
    margin-bottom: 32px;
    animation: fadeUp .4s var(--ease) both;
}

.form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--crimson);
    background: var(--crimson-faint);
    border: 1px solid var(--crimson-soft);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.form-title {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 800;
    color: var(--text-1);
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.6;
}

/* ─── Input groups ───────────────────────────────────────────────────────── */
.input-group-row {
    display: flex;
    gap: 14px;
}

.input-group-row .field-wrap {
    flex: 1;
}

.field-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    animation: fadeUp .4s var(--ease) both;
}

.field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: .01em;
}

.field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    color: var(--text-3);
    font-size: 15px;
    transition: color .2s;
    pointer-events: none;
    z-index: 1;
}

.field-input {
    width: 100%;
    height: 46px;
    padding: 0 44px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    color: var(--text-1);
    outline: none;
    transition: all .2s var(--ease);
}

.field-input::placeholder {
    color: var(--text-3);
    font-size: 13px;
}

.field-input:focus {
    border-color: var(--crimson);
    box-shadow: 0 0 0 3.5px var(--crimson-faint);
    background: var(--card);
}

.field-input:focus+.field-icon,
.field-wrap:focus-within .field-icon {
    color: var(--crimson);
}

.field-wrap:focus-within .field-label {
    color: var(--crimson);
}

/* Valid state */
.field-input.valid {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Error state */
.field-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-suffix {
    position: absolute;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Password toggle */
.pass-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-3);
    font-size: 14px;
    transition: all .15s;
}

.pass-toggle:hover {
    background: var(--surface);
    color: var(--text-1);
}

/* Validation icon */
.field-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    flex-shrink: 0;
    animation: checkPop .3s var(--spring) both;
}

.field-check.ok {
    background: #16a34a;
}

.field-check.err {
    background: #dc2626;
}

.field-hint {
    font-size: 11.5px;
    color: var(--text-3);
    margin-top: -4px;
}

.field-hint.error {
    color: #dc2626;
}

.field-hint.success {
    color: #16a34a;
}

/* ─── Password strength ──────────────────────────────────────────────────── */
.strength-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -8px;
    margin-bottom: 14px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}

.strength-bar {
    height: 3px;
    flex: 1;
    border-radius: 9999px;
    background: var(--border);
    transition: background .3s var(--ease);
}

.strength-bar.weak {
    background: #dc2626;
}

.strength-bar.fair {
    background: #f59e0b;
}

.strength-bar.good {
    background: #3b82f6;
}

.strength-bar.strong {
    background: #16a34a;
}

.strength-label {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.strength-label.weak {
    color: #dc2626;
}

.strength-label.fair {
    color: #f59e0b;
}

.strength-label.good {
    color: #3b82f6;
}

.strength-label.strong {
    color: #16a34a;
}

/* ─── Checkbox ───────────────────────────────────────────────────────────── */
.check-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.check-input {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--border);
    background: var(--card);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: var(--crimson);
    transition: border-color .15s;
}

.check-input:hover {
    border-color: var(--crimson);
}

.check-label {
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.5;
}

.check-label a {
    color: var(--crimson);
    font-weight: 600;
    text-decoration: none;
}

.check-label a:hover {
    text-decoration: underline;
}

/* ─── Primary button ─────────────────────────────────────────────────────── */
.primary-btn {
    width: 100%;
    height: 50px;
    background: var(--crimson);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .02em;
    box-shadow: 0 4px 18px var(--crimson-glow);
    transition: all .25s var(--spring);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.primary-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.primary-btn:hover:not(:disabled) {
    background: var(--crimson-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--crimson-glow);
}

.primary-btn:active:not(:disabled) {
    transform: translateY(0);
}

.primary-btn:disabled {
    opacity: .78;
    cursor: wait;
}

/* Sending dots */
.btn-dots span {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: white;
    margin: 0 3px;
    animation: dotBounce 1.1s infinite ease-in-out both;
}

.btn-dots span:nth-child(2) {
    animation-delay: .18s;
}

.btn-dots span:nth-child(3) {
    animation-delay: .36s;
}

/* ─── Divider ────────────────────────────────────────────────────────────── */
.divider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.divider-text {
    font-size: 11.5px;
    color: var(--text-3);
    font-weight: 500;
    white-space: nowrap;
}

/* ─── Social buttons ─────────────────────────────────────────────────────── */
.social-row {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.social-btn {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--card);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-1);
    transition: all .2s var(--ease);
}

.social-btn:hover {
    border-color: var(--crimson-soft);
    background: var(--crimson-faint);
    color: var(--crimson);
}

.social-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ─── Forgot password / links ────────────────────────────────────────────── */
.link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.auth-link {
    font-size: 12.5px;
    color: var(--crimson);
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
}

.auth-link:hover {
    opacity: .75;
    text-decoration: underline;
}

/* ─── Switch page text ───────────────────────────────────────────────────── */
.switch-row {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-3);
    animation: fadeUp .4s var(--ease) .3s both;
}

.switch-row a {
    color: var(--crimson);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.switch-row a:hover {
    text-decoration: underline;
}

/* ─── Progress steps (register) ─────────────────────────────────────────── */
.steps-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
    animation: fadeUp .4s var(--ease) .1s both;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid var(--border);
    color: var(--text-3);
    background: var(--card);
    transition: all .3s var(--ease);
}

.step-circle.active {
    border-color: var(--crimson);
    color: var(--crimson);
    background: var(--crimson-faint);
}

.step-circle.done {
    border-color: #16a34a;
    background: #16a34a;
    color: white;
}

.step-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-3);
    white-space: nowrap;
}

.step-label.active {
    color: var(--crimson);
}

.step-label.done {
    color: #16a34a;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 6px;
    margin-bottom: 16px;
    transition: background .3s;
    min-width: 20px;
}

.step-line.done {
    background: #16a34a;
}

/* ─── Verify email screen ────────────────────────────────────────────────── */
.verify-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 0;
}

.verify-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--crimson-faint);
    border: 2px solid var(--crimson-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: var(--crimson);
    margin-bottom: 20px;
    animation: checkPop .5s var(--spring) both;
}

.verify-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-1);
    margin-bottom: 10px;
    letter-spacing: -.02em;
}

.verify-sub {
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.65;
    max-width: 320px;
    margin-bottom: 28px;
}

.verify-email-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: var(--crimson-faint);
    border: 1px solid var(--crimson-soft);
    color: var(--crimson);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
}

/* OTP input row */
.otp-row {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    justify-content: center;
}

.otp-input {
    width: 50px;
    height: 58px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--text-1);
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all .2s;
}

.otp-input:focus {
    border-color: var(--crimson);
    box-shadow: 0 0 0 3px var(--crimson-faint);
}

.otp-input.filled {
    border-color: var(--crimson);
    background: var(--crimson-faint);
    color: var(--crimson);
}

/* ─── Toast ──────────────────────────────────────────────────────────────── */
#toast-wrap {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    align-items: center;
}

.toast-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    background: var(--text-1);
    color: var(--bg);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: fadeUp .28s var(--ease) both;
    white-space: nowrap;
}

.toast-item.success {
    background: #15803d;
    color: white;
}

.toast-item.error {
    background: #dc2626;
    color: white;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .form-panel {
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 16px 20px 32px;
    }

    .input-group-row {
        flex-direction: column;
        gap: 0;
    }

    .social-row {
        flex-direction: column;
    }
}

/* ─── Page transition ────────────────────────────────────────────────────── */
.page-enter {
    animation: scaleIn .3s var(--ease) both;
}

.page-exit {
    animation: fadeIn .2s var(--ease) reverse both;
}

/* Spin util */
.spin {
    animation: spin .7s linear infinite;
}