/**
 * Suffah — Auth pages
 * Pre-login pages (/login, /register, /forgot-password, etc.) sit
 * outside the 3-column app shell — they get their own simple
 * centered layout. Uses only tokens already defined in variables.css;
 * this file adds no new colors or one-off values.
 */

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) var(--space-4);
}

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

.auth-card__logo {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
    text-align: center;
    margin-bottom: var(--space-6);
}

.auth-card__title {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-2);
}

.auth-card__subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.auth-card__footer {
    text-align: center;
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.auth-card__footer a {
    color: var(--color-accent);
    font-weight: var(--weight-semibold);
}

/* Alias to the shared .alert component (components.css) — kept so
 * the auth pages' existing markup (class="auth-alert auth-alert--error")
 * keeps working without a find-and-replace across every page. */
.auth-alert { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.auth-alert--error { background: var(--color-danger-subtle); color: var(--color-danger); }
.auth-alert--success { background: var(--color-success-subtle); color: var(--color-success); }

.password-field {
    position: relative;
}
.password-field .input {
    padding-right: var(--space-10);
}
.password-field__toggle {
    position: absolute;
    right: var(--space-1);
    top: 50%;
    transform: translateY(-50%);
}
