/* ==========================================================================
   Auth pages (login, password reset)
   Shell comes from public.css; this is just the centred card.
   ========================================================================== */

.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--navbar-height) - 12rem);
    padding: 3rem 0;
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    padding: clamp(1.5rem, 5vw, 2.75rem);
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card .form-label {
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.auth-card .form-control {
    min-height: var(--touch-target-size);
    background: var(--card);
    color: var(--text);
    border-color: var(--border);
}

.auth-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 25%, transparent);
}

/* Show/hide password toggle */
.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: var(--touch-target-size);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.password-toggle:hover {
    color: var(--primary-color);
}

#login-messages:empty {
    display: none;
}

#login-messages .alert:last-child {
    margin-bottom: 1.25rem;
}
