/* Auth card. Shared shell for the 6 auth pages (login, logged-out, password,
 * activation/set_password, activation/gone, admin_login).
 *
 * The card is rendered via jte/shared/_auth_card.kte. The form-field rules
 * below are scoped to .auth-card so they only apply inside the card and
 * don't leak into the admin or therapist UIs (which use form.css / modal.css). */

.auth-card {
    background: var(--surface-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
}

/* Wider variant for pages with lead text (activation/set_password, gone). */
.auth-card--wide { max-width: 420px; }

.auth-card h1 {
    margin: 0 0 1.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
}

/* Body paragraphs (used by gone.kte and similar info-only auth pages). */
.auth-card p {
    margin: 0 0 1rem;
    font-size: .95rem;
    color: var(--text);
}

/* Optional lead paragraph pulled close to the heading (used between h1 and
 * the form on activation/set_password). */
.auth-card .lead {
    margin: -1rem 0 1.5rem;
}

/* Echoed email address on the password-reset confirmation page, pulled close
 * to the heading. word-break keeps a long address inside the card. */
.auth-card .reset-requested-email {
    word-break: break-all;
}

/* Form fields inside the card. The auth pages use plain <label>/<input>
 * pairs (no .form-field wrapper), so we style them directly under .auth-card. */
.auth-card label {
    display: block;
    margin-bottom: .35rem;
    font-size: .875rem;
    color: var(--text);
}
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
    display: block;
    width: 100%;
    padding: .55rem .75rem;
    margin-bottom: 1.1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color .15s, box-shadow .15s;
}
.auth-card input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* "Forgot password?" link shown under the login form. */
.auth-card .forgot-password {
    margin: 1rem 0 0;
    text-align: center;
    font-size: .875rem;
}
.auth-card .forgot-password a {
    color: var(--accent);
    text-decoration: none;
}
.auth-card .forgot-password a:hover {
    text-decoration: underline;
}
