    .auth-page {
        min-height: calc(100vh - 80px);
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    }

    /* Brand panel (left) */
    .auth-panel {
        position: relative;
        background: linear-gradient(165deg, var(--bg-2) 0%, var(--bg) 100%);
        overflow: hidden;
        display: flex;
    }

    /* The brand panel intentionally remains dark in light mode so its white
       logo and headline retain accessible contrast. */
    [data-theme="light"] .auth-panel {
        background: linear-gradient(165deg, #172033 0%, #0b1220 100%);
    }

    .auth-panel-inner {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1.5rem;
        width: 100%;
        padding: 3rem 3.25rem;
    }

    .auth-panel-logo {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 0.01em;
        gap: 0.4rem;
    }

    .auth-panel-logo img {
        max-width: 132px;
        max-height: 36px;
        object-fit: contain;
    }

    .auth-panel-brand-name {
        margin: 0;
        line-height: 1.2;
        white-space: nowrap;
    }

    .auth-panel-copy {
        max-width: 26rem;
        margin: 2rem 0 0;
    }

    .auth-panel-copy h2,
    .auth-panel-copy strong {
        display: block;
        margin: 0 0 0.9rem;
        font-size: clamp(1.7rem, 2.6vw, 2.15rem);
        line-height: 1.28;
        font-weight: 650;
        color: #ffffff;
        letter-spacing: -0.01em;
    }

    .auth-panel-copy p {
        margin: 0;
        font-size: 0.98rem;
        line-height: 1.65;
        color: #9aa8c4;
    }

    .auth-panel-points {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
    }

    .auth-panel-points li {
        display: flex;
        align-items: flex-start;
        gap: 0.65rem;
        font-size: 0.88rem;
        line-height: 1.5;
        color: #c7d1e5;
    }

    .auth-panel-points svg {
        flex: none;
        margin-top: 0.1rem;
        color: var(--primary);
    }

    [data-theme="light"] .auth-panel-logo,
    [data-theme="light"] .auth-panel-copy h2,
    [data-theme="light"] .auth-panel-copy strong {
        color: #f8fafc;
    }

    [data-theme="light"] .auth-panel-copy p {
        color: #cbd5e1;
    }

    [data-theme="light"] .auth-panel-points li {
        color: #dbe4f0;
    }

    .auth-panel-graphic {
        position: absolute;
        right: -30px;
        bottom: -10px;
        width: 78%;
        max-width: 420px;
        height: auto;
        opacity: 0.9;
    }

    /* Form panel (right) */
    .auth-form-panel {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg);
        padding: 3rem 1.5rem;
    }

    .auth-container {
        width: 100%;
        max-width: 400px;
    }

    .auth-mobile-logo {
        display: none;
    }

    .auth-card {
        padding: 0;
    }

    .auth-header {
        margin-bottom: 2rem;
    }

    .auth-header h1 {
        margin: 0;
        font-size: 1.6rem;
        line-height: 1.25;
        font-weight: 650;
        color: var(--txt);
        letter-spacing: -0.01em;
    }

    .auth-header p {
        margin: 0.6rem 0 0;
        color: var(--txt-2);
        line-height: 1.6;
        font-size: 0.95rem;
    }

    .auth-form {
        display: flex;
        flex-direction: column;
        gap: 1.35rem;
    }

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .form-group label,
    .form-label-row label {
        font-size: 0.87rem;
        font-weight: 600;
        color: var(--txt);
    }

    .form-label-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .forgot-password {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--primary);
        text-decoration: none;
    }

    .forgot-password:hover {
        text-decoration: underline;
    }

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

    .input-wrapper input {
        width: 100%;
        min-height: 48px;
        padding: 0.7rem 2.9rem;
        border: 1.5px solid var(--border);
        border-radius: 9px;
        background: var(--surface);
        color: var(--txt);
        font: inherit;
        font-size: 0.95rem;
        outline: none;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
        box-sizing: border-box;
    }

    .auth-registration-form .input-wrapper input {
        padding-inline: 0.9rem;
    }

    .input-wrapper input::placeholder {
        color: var(--txt-3);
    }

    .input-wrapper input:focus-visible {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-dim);
    }

    .input-wrapper input[aria-invalid="true"] {
        border-color: #ef6b73;
    }

    .input-icon {
        position: absolute;
        left: 0.95rem;
        display: flex;
        pointer-events: none;
        color: var(--txt-3);
    }

    .password-toggle {
        position: absolute;
        right: 0.6rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: var(--txt-3);
        cursor: pointer;
    }

    .password-toggle:hover {
        color: var(--txt);
        background: var(--surface);
    }

    .password-toggle:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    .field-error {
        margin: 0;
        color: #c0342f;
        font-size: 0.8rem;
    }

    .field-hint {
        margin: 0;
        color: var(--txt-3);
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .password-guidance {
        display: grid;
        gap: 0.35rem;
        margin: 0;
        padding: 0;
        list-style: none;
        color: var(--txt-3);
        font-size: 0.76rem;
    }

    .password-guidance li {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
    }

    .password-guidance li.is-valid {
        color: #16834a;
    }

    [data-theme="dark"] .password-guidance li.is-valid {
        color: #58d68d;
    }

    .auth-alert {
        margin-bottom: 1.5rem;
        padding: 0.9rem 1rem;
        border-radius: 9px;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .auth-alert-error {
        border: 1px solid rgba(239, 107, 115, 0.45);
        background: rgba(239, 107, 115, 0.1);
        color: #ff9b9f;
    }

    [data-theme="light"] .auth-alert-error {
        color: #9f1d27;
    }

    .auth-alert span {
        display: block;
        margin-top: 0.25rem;
    }

    .remember-row {
        margin-top: -0.35rem;
    }

    .checkbox-label {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        font-size: 0.87rem;
        color: var(--txt-2);
        cursor: pointer;
    }

    .checkbox-label input {
        width: 16px;
        height: 16px;
        accent-color: var(--primary);
    }

    .auth-submit {
        width: 100%;
        min-height: 50px;
        border: 0;
        border-radius: 9px;
        background: var(--primary);
        color: var(--bg);
        font: inherit;
        font-size: 0.95rem;
        font-weight: 650;
        cursor: pointer;
        transition: background-color 0.15s ease;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .auth-submit:hover {
        background: var(--accent);
        color: var(--bg);
    }

    .auth-submit:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    .auth-google-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
        width: 100%;
        min-height: 48px;
        padding: 0.7rem 1rem;
        border: 1px solid var(--border);
        border-radius: 9px;
        background: var(--surface);
        color: var(--txt);
        font-size: 0.92rem;
        font-weight: 600;
        text-decoration: none;
        transition: border-color 0.15s ease, background 0.15s ease;
    }

    .auth-google-button:hover {
        border-color: var(--primary);
        background: var(--bg-2);
    }

    .auth-google-button--disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .auth-divider {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin: 1.75rem 0 1.25rem;
        color: var(--txt-3);
        font-size: 0.82rem;
    }

    .auth-divider::before,
    .auth-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--border);
    }

    .auth-footer {
        margin: 0;
        text-align: center;
        color: var(--txt-2);
        font-size: 0.87rem;
    }

    .auth-footer a {
        font-weight: 650;
        color: var(--primary);
        text-decoration: none;
    }

    .auth-footer a:hover {
        text-decoration: underline;
    }

    .auth-security {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        margin-top: 1.75rem;
        color: var(--txt-3);
        font-size: 0.78rem;
    }

    /* Status / message states (done, complete, invalid link) */
    .auth-status {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .auth-status-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        margin-bottom: 1.5rem;
    }

    .auth-status-icon svg {
        width: 26px;
        height: 26px;
    }

    .auth-status-icon.success {
        background: rgba(34, 197, 94, 0.14);
        color: #4ade80;
    }

    .auth-status-icon.warn {
        background: rgba(240, 180, 41, 0.14);
        color: var(--accent);
    }

    .auth-status h1 {
        margin: 0 0 0.7rem;
        font-size: 1.45rem;
        line-height: 1.3;
        font-weight: 650;
        color: var(--txt);
        letter-spacing: -0.01em;
    }

    .auth-status p {
        margin: 0;
        color: var(--txt-2);
        font-size: 0.95rem;
        line-height: 1.65;
        max-width: 30rem;
    }

    .auth-error-actions {
        display: grid;
        gap: 1rem;
        width: 100%;
        max-width: 24rem;
        margin-top: 1.75rem;
    }

    .auth-error-actions .auth-submit {
        margin: 0;
    }

    .auth-secondary-link {
        justify-self: center;
        color: var(--primary);
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
    }

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

    .auth-status .auth-submit,
    .auth-status .auth-footer {
        margin-top: 2rem;
    }

    @media (prefers-reduced-motion: no-preference) {
        .auth-submit,
        .input-wrapper input,
        .password-toggle {
            transition-duration: 0.15s;
        }
    }

    @media (max-width: 980px) {
        .auth-page {
            grid-template-columns: 1fr;
        }

        .auth-panel {
            display: none;
        }

        .auth-mobile-logo {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--txt);
            text-decoration: none;
        }

        .auth-mobile-logo img {
            max-width: 150px;
            max-height: 40px;
            object-fit: contain;
        }

        .auth-form-panel {
            padding: 3rem 1.25rem;
        }
    }

    @media (max-width: 520px) {
        .auth-form-panel {
            padding: 2.5rem 1.1rem;
        }

        .auth-header h1,
        .auth-status h1 {
            font-size: 1.35rem;
        }
    }


/* =========================================================
   AUTHENTICATION ALERT
   ========================================================= */

.auth-alert {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;

    width: 100%;
    box-sizing: border-box;

    margin: 0 0 1.25rem;
    padding: 0.9rem 0.95rem;

    border: 1px solid transparent;
    border-radius: 0.8rem;

    font-size: 0.875rem;
    line-height: 1.45;

    transition:
        opacity 180ms ease,
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;

    animation: authAlertIn 220ms ease-out;
}


/* ---------------------------------------------------------
   ERROR STATE
   --------------------------------------------------------- */

.auth-alert-error {
    color: #991b1b;

    background:
        linear-gradient(
            135deg,
            rgba(254, 242, 242, 0.98),
            rgba(255, 247, 247, 0.98)
        );

    border-color: rgba(248, 113, 113, 0.35);

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 6px 18px rgba(127, 29, 29, 0.06);
}


/* ---------------------------------------------------------
   ICON
   --------------------------------------------------------- */

.auth-alert-icon {
    flex: 0 0 2rem;

    width: 2rem;
    height: 2rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 0.05rem;

    color: #dc2626;

    background: rgba(254, 226, 226, 0.9);

    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 0.6rem;
}

.auth-alert-icon svg {
    display: block;
}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.auth-alert-content {
    min-width: 0;

    display: flex;
    flex: 1;

    flex-direction: column;
    gap: 0.15rem;

    padding-top: 0.05rem;
}

.auth-alert-title {
    display: block;

    color: #7f1d1d;

    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.auth-alert-message {
    display: block;

    color: #991b1b;

    font-size: 0.8125rem;
    font-weight: 450;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   CLOSE BUTTON
   --------------------------------------------------------- */

.auth-alert-close {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 1.8rem;
    height: 1.8rem;

    margin: -0.1rem -0.15rem 0 0;
    padding: 0;

    color: #b91c1c;

    background: transparent;

    border: 0;
    border-radius: 0.45rem;

    cursor: pointer;

    transition:
        color 150ms ease,
        background-color 150ms ease,
        transform 150ms ease;
}

.auth-alert-close:hover {
    color: #7f1d1d;
    background: rgba(254, 226, 226, 0.9);
}

.auth-alert-close:active {
    transform: scale(0.94);
}

.auth-alert-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.auth-alert-close svg {
    display: block;
}


/* ---------------------------------------------------------
   HIDDEN STATE
   --------------------------------------------------------- */

.auth-alert[hidden] {
    display: none;
}


/* ---------------------------------------------------------
   ANIMATION
   --------------------------------------------------------- */

@keyframes authAlertIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .auth-alert {
        animation: none;
        transition: none;
    }

    .auth-alert-close {
        transition: none;
    }
}


/* ---------------------------------------------------------
   DARK MODE
   --------------------------------------------------------- */

[data-theme="dark"] .auth-alert-error {
    color: #fecaca;

    background:
        linear-gradient(
            135deg,
            rgba(69, 10, 10, 0.55),
            rgba(69, 10, 10, 0.38)
        );

    border-color: rgba(248, 113, 113, 0.25);

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .auth-alert-icon {
    color: #f87171;
    background: rgba(127, 29, 29, 0.35);
    border-color: rgba(248, 113, 113, 0.2);
}

[data-theme="dark"] .auth-alert-title {
    color: #fecaca;
}

[data-theme="dark"] .auth-alert-message {
    color: #fca5a5;
}

[data-theme="dark"] .auth-alert-close {
    color: #fca5a5;
}

[data-theme="dark"] .auth-alert-close:hover {
    color: #fecaca;
    background: rgba(127, 29, 29, 0.4);
}
