/* ── Page shell ─────────────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: var(--rz-body-background-color, #f0f2f5);
    background-image: url('/images/login-background.jpeg');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
}

/* ── Two-panel card ─────────────────────────────────────────────── */
.auth-panel {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 520px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
    background: #ffffff;
    gap: 0;
}

/* ── Left: brand panel ──────────────────────────────────────────── */
.auth-brand-panel {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
    gap: 20px;
    background: linear-gradient(150deg, var(--brand-primary, #015CEC) 0%, var(--brand-primary-hover, #002E63) 100%);
    color: #ffffff;
}

.auth-brand-logo {
    max-width: 180px;
    height: auto;
    /* Makes the logo appear white on any brand color background */
    filter: brightness(0) invert(1);
    margin-bottom: 12px;
}

.auth-brand-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #ffffff;
}

.auth-brand-subtitle {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* ── Right: content panel ───────────────────────────────────────── */
.auth-content-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
    background: #ffffff;
    position: relative;
}

/* ── Page heading inside right panel ────────────────────────────── */
.auth-heading {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--rz-text-color, #212121);
    margin: 0 0 1.5rem 0;
}

/* ── Responsive: two separate cards with gap ────────────────────── */
@media (max-width: 768px) {
    /* Parent becomes a transparent column container with gap */
    .auth-panel {
        flex-direction: column;
        min-height: auto;
        max-width: 480px;
        overflow: visible;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        gap: 10px;
    }

    /* Brand panel: compact horizontal banner, own card style */
    .auth-brand-panel {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 20px 28px;
        gap: 0;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
    }

    .auth-brand-logo {
        max-width: 130px;
        margin-bottom: 0;
    }

    /* Title and subtitle hidden in compact banner mode */
    .auth-brand-title,
    .auth-brand-subtitle {
        display: none;
    }

    /* Content panel: own card style */
    .auth-content-panel {
        padding: 32px 28px 48px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
    }
}

/* ─────────────────────────────────────────────────────────────────
   Classes below are still used by Register / ForgotPassword /
   ResetPassword pages.
   ─────────────────────────────────────────────────────────────────*/

.auth-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-input {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: var(--brand-font, inherit);
    color: var(--rz-text-color, #333);
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-input::placeholder {
    color: #a0a5b0;
}

.auth-input:focus {
    border-color: var(--brand-primary, #015CEC);
    box-shadow: 0 0 0 3px rgba(1, 92, 236, 0.12);
}

.auth-action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

.auth-forgot-link {
    font-size: 0.875rem;
    color: var(--brand-primary, #015CEC);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-forgot-link:hover {
    color: var(--brand-primary-hover, #002E63);
}

.auth-or-divider {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 1.25rem 0;
    font-size: 0.875rem;
    color: var(--rz-text-secondary-color, #757575);
}

.auth-or-divider::before,
.auth-or-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--rz-border-disabled-color, #e0e0e0);
}
