/* ============================================================================
   AUTHENTICATION PAGES
   ============================================================================ */

.auth-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.auth-card {
    margin: 32px 0;
    width: 65%;
    max-width: 900px;
    min-height: 300px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 32px;
    overflow: hidden;
    background: var(--bg-bubble);
    border: 2px solid var(--bubble-border);
    align-self: stretch;
}

.auth-form-panel {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    overflow-y: auto;
}

.auth-visual-panel {
    position: relative;
    min-height: 100%;
}

.auth-visual-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-visual-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(4,32,38,.65), rgba(166,127,93,.35));
}

.auth-wordmark {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 60%;
    max-width: 320px;
    height: fit-content;
    z-index: 1;
}

/* Dark mode: show dark logo, hide light logo (default) */
.auth-logo-light { display: none; }
.auth-logo-dark  { display: block; }

/* Light mode: swap */
:root:not([data-theme="dark"]) .auth-logo-light { display: block; }
:root:not([data-theme="dark"]) .auth-logo-dark  { display: none; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 900px) {
    .auth-page {
        align-items: flex-start;
        padding: 0;
        margin: 0;
    }

    .auth-card {
        grid-template-columns: 1fr;
        max-height: 100%;
        width: 100%;
        margin: 0;
    }

    .auth-visual-panel {
        height: 100%;
    }

    .auth-form-panel {
        padding: 24px;
    }
}
