/* auth.css — صفحتا الدخول وتغيير كلمة المرور (المرحلة 8). */

.auth-page {
    direction: rtl;
    padding: 70px 0 90px;
    background: #faf6ec;
    min-height: 62vh;
    display: flex;
    align-items: center;
}

.auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8dfc4;
    border-radius: 24px;
    padding: 34px 30px;
    box-shadow: 0 20px 45px rgba(10, 10, 10, .07);
}

.auth-card--wide { max-width: 520px; }

.auth-card__head { text-align: center; margin-bottom: 26px; }

.auth-card__head > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #faf6ec;
    color: #d4a017;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.auth-card__head h1 {
    font-size: 1.55rem;
    font-weight: 900;
    color: #0a0a0a;
    margin: 0;
}

.auth-card__head p {
    margin: 6px 0 0;
    color: #6b6b6b;
    font-size: .92rem;
}

/* ── التنبيهات ── */
.auth-alert {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 13px 15px;
    border-radius: 14px;
    margin-bottom: 18px;
    background: #fdecec;
    border: 1px solid #f5c6c6;
    color: #a02020;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.8;
}

.auth-alert > div { display: flex; flex-direction: column; gap: 3px; }
.auth-alert i { margin-top: 3px; flex: 0 0 auto; }

.auth-alert--warn { background: #fff8e6; border-color: #f0dca0; color: #8a6100; }
.auth-alert--ok { background: #eaf7ee; border-color: #b6e0c2; color: #1c6b34; }

/* ── الحقول ── */
.auth-field { margin-bottom: 17px; }

.auth-field label {
    display: block;
    font-weight: 800;
    font-size: .9rem;
    color: #1a1a1a;
    margin-bottom: 7px;
}

.auth-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #faf6ec;
    border: 1px solid #e8dfc4;
    border-radius: 13px;
    padding: 0 13px;
    transition: border-color .2s, box-shadow .2s;
}

.auth-input:focus-within {
    border-color: #d4a017;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, .15);
}

.auth-input > i { color: #d4a017; flex: 0 0 auto; }

.auth-input input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 13px 0;
    font-family: inherit;
    font-size: 1rem;
    color: #0a0a0a;
    outline: none;
}

.auth-toggle {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #6b6b6b;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}

.auth-toggle:hover { color: #d4a017; }

.auth-hint {
    display: block;
    margin-top: 7px;
    font-size: .8rem;
    color: #6b6b6b;
    line-height: 1.7;
}

/* ── الأزرار ── */
.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 8px;
    padding: 14px;
    border: 0;
    border-radius: 13px;
    background: #d4a017;
    color: #0a0a0a;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
}

.auth-submit:hover { background: #e8c258; transform: translateY(-1px); }

.auth-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid #f3ebd6;
    font-size: .82rem;
    color: #6b6b6b;
    line-height: 1.7;
}

.auth-note i { color: #d4a017; }

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    color: #6b6b6b;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-back:hover { color: #d4a017; }

@media (max-width: 575.98px) {
    .auth-page { padding: 40px 0 60px; }
    .auth-card { padding: 26px 20px; border-radius: 20px; }
}
