/* ============================================================
   AUTH LOGIN — صفحه ورود / ثبت‌نام
   ============================================================ */

.auth-login {
    padding-block: 70px 100px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-login-card {
    width: 100%;
    max-width: 460px;
    padding: 40px 30px;
    background: var(--surface);
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.auth-login-card::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    aspect-ratio: 1 / 1;
    border: 1px solid #c3a36a22;
    border-radius: 50%;
    pointer-events: none;
}

.auth-login-card h1 {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.auth-login-desc {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.9;
}

/* ===== فرم ===== */
.auth-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field-label {
    font-size: 13px;
    color: var(--cream);
    font-weight: 500;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--cream);
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-align: center;
    transition: border-color var(--transition-fast), background var(--transition-fast);
    outline: none;
}

.auth-input::placeholder {
    color: var(--muted);
    opacity: .5;
    letter-spacing: 1px;
    font-weight: 400;
}

.auth-input:hover {
    border-color: #9f824680;
}

.auth-input:focus {
    border-color: var(--gold);
    background: #0f2a24;
}

.auth-field-hint {
    font-size: 11px;
    color: var(--muted);
    opacity: .7;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.auth-error {
    font-size: 12px;
    color: #e07b7b;
    background: #e07b7b14;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border-right: 3px solid #e07b7b;
    margin: 0;
}

.auth-login-terms {
    margin: 24px 0 0;
    font-size: 11px;
    text-align: center;
    color: var(--muted);
    line-height: 1.9;
}

.auth-login-terms a {
    color: var(--gold);
    border-bottom: 1px solid var(--line);
}

.auth-login-terms a:hover {
    color: var(--cream);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .auth-login {
        padding-block: 50px 70px;
    }

    .auth-login-card {
        padding: 32px 22px;
    }

    .auth-login-card h1 {
        font-size: 1.45rem;
    }
}

/* ===== فیلد با خطا ===== */
.auth-field--error .auth-input {
    border-color: #e07b7b;
    background: #e07b7b08;
}

.auth-field--error .auth-input:focus {
    border-color: #e07b7b;
    box-shadow: 0 0 0 3px #e07b7b1a;
}

.auth-field--error .auth-field-label {
    color: #e07b7b;
}

/* ===== خطای فیلد (زیر فیلد) ===== */
.auth-field .auth-error {
    font-size: 12px;
    color: #e07b7b;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    background: none;
    border: 0;
    border-radius: 0;
}

/* ===== فیلد OTP ===== */
.auth-input--otp {
    text-align: center;
    font-size: 22px;
    letter-spacing: 12px;
    font-weight: 600;
    padding: 16px 20px;
    padding-left: 28px;
    font-family: Georgia, serif;
}

.auth-input--otp::placeholder {
    letter-spacing: 6px;
    font-size: 18px;
    opacity: .4;
}