/* ── صفحات احراز هویت: مینیمال، تم‌پذیر ─────────────────────── */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 120% 90% at 50% 120%, var(--bg-soft) 0%, var(--bg) 60%);
    color: var(--text);
    padding: 2rem 1rem;
}

.auth-wrap {
    width: 100%;
    max-width: 26rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.auth-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-logo {
    color: var(--text);
    font-size: 1.6rem;
    text-decoration: none;
}

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

.auth-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.auth-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

/* فیلدها */
.field { display: block; margin-bottom: 1.1rem; }

.field span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-soft);
}

.field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-fa);
    font-size: 1rem;
    transition: border-color .2s ease;
}

.field input:focus {
    outline: none;
    border-color: var(--ion-500);
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
}

/* پیام‌ها */
.alert {
    border-radius: 12px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.9;
}
.alert-error   { border: 1px solid rgba(220, 60, 60, .55);  color: #e05252; background: rgba(220, 60, 60, .07); }
.alert-success { border: 1px solid rgba(34, 160, 90, .55);  color: #1f9d5c; background: rgba(34, 160, 90, .07); }

:root:not([data-theme="light"]) .alert-error   { color: #f8a3a3; }
:root:not([data-theme="light"]) .alert-success { color: #86efac; }

/* لینک‌های زیر فرم */
.auth-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
}
.auth-links a { color: var(--ion-500); text-decoration: none; }
.auth-links a:hover { color: var(--text); }

.auth-back {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
}
.auth-back:hover { color: var(--text); }

.muted { color: var(--text-muted); }
