/* ==========================================================================
   Login and access-denied pages
   ========================================================================== */

.auth-page {
    min-height: 100vh;
    background: var(--background);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
}

.auth-shell--single {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 24px 16px;
}

/* Left brand panel */
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
}

.auth-brand__inner {
    max-width: 380px;
}

.auth-brand h2 {
    margin-top: 24px;
    font-size: 30px;
    color: var(--sidebar-text-strong);
    letter-spacing: 0.5px;
}

.auth-brand p {
    margin-top: 8px;
    font-size: 16px;
}

.auth-brand__list {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.auth-brand__list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-brand__list .icon {
    color: #5eead4;
}

/* Right form card */
.auth-card {
    align-self: center;
    justify-self: center;
    width: 100%;
    max-width: 420px;
    padding: 40px 32px;
    display: grid;
    gap: 20px;
}

.auth-card--center {
    max-width: 480px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    justify-items: center;
}

.auth-card__header {
    display: grid;
    gap: 8px;
}

.auth-card__header .brand-mark {
    display: none;
    margin-bottom: 8px;
}

.auth-card__header h1 {
    font-size: 26px;
}

.auth-card h1 {
    font-size: 24px;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form .btn {
    min-height: 44px;
    margin-top: 4px;
}

.auth-card__footer {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.auth-actions form {
    margin: 0;
}

/* Tablet and mobile: hide the brand panel, show the logo in the card */
@media (max-width: 860px) {
    .auth-shell {
        grid-template-columns: 1fr;
        padding: 24px 16px;
    }

    .auth-brand {
        display: none;
    }

    .auth-card {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow);
        padding: 32px 22px;
    }

    .auth-card__header .brand-mark {
        display: inline-flex;
    }
}

.auth-card__switch {
    margin: 0;
    font-size: 14px;
    text-align: center;
}

#register-form .form-group,
#forgot-form .form-group {
    margin: 0;
}

.auth-form .form-grid {
    display: grid;
    gap: 14px;
}

/* "Forgot password?" under the password field */
.auth-form__forgot {
    margin: 6px 0 0;
    text-align: right;
    font-size: 0.875rem;
}
