/* ── Auth pages: Login + Register ────────────────────────── */

.auth-page {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background-color: var(--color-bg-surface);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8) var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* ── Brand block ──────────────────────────────────────────── */
.auth-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.auth-brand__icon { font-size: 2.5rem; line-height: 1; }

.auth-brand__name {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    color: var(--color-rose-700);
    margin: 0;
    font-family: var(--font-persian);
    letter-spacing: -0.01em;
}

.auth-brand__tagline {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    margin: 0;
    font-family: var(--font-persian);
}

/* ── Form ─────────────────────────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.auth-form__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.auth-form__label {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
    font-family: var(--font-persian);
}

.auth-form__input {
    /* Inherits base input styles from app.css */
    direction: ltr; /* email/password are always LTR */
    text-align: start;
}

/* ── Buttons ──────────────────────────────────────────────── */
.auth-btn {
    min-height: 52px;
    border-radius: var(--radius-full);
    border: none;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    font-family: var(--font-persian);
    cursor: pointer;
    transition: background-color var(--duration-fast) var(--ease-standard);
    width: 100%;
}

.auth-btn--primary {
    background-color: var(--color-rose-600);
    color: var(--color-text-on-rose);
}

.auth-btn--primary:hover { background-color: var(--color-rose-700); }

/* ── Error ────────────────────────────────────────────────── */
.auth-error {
    padding: var(--space-3) var(--space-4);
    background-color: var(--color-emergency-100);
    border: 1px solid var(--color-emergency-200);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-emergency-700);
    font-family: var(--font-persian);
}

/* ── Footer link ──────────────────────────────────────────── */
.auth-footer {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    font-family: var(--font-persian);
    margin: 0;
}

.auth-footer a {
    color: var(--color-rose-700);
    font-weight: var(--weight-medium);
}
