/* ===== حصون الإيمان — auth & account theming (matches site tokens) ===== */
/* tokens mirror app.css :root — gold #D4AF37 / navy #1B3A4B / Cairo */

/* ---- Auth pages (login, register, password flows): centered branded card on navy ---- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Cairo', sans-serif;
    background:
        radial-gradient(circle at 20% 15%, rgba(212, 175, 55, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(46, 139, 87, 0.10) 0%, transparent 45%),
        linear-gradient(135deg, #1B3A4B 0%, #0D1F2D 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: authRise 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes authRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.auth-head {
    text-align: center;
    padding: 34px 28px 22px;
    background: linear-gradient(135deg, #1B3A4B 0%, #0D1F2D 100%);
    color: #fff;
}
.auth-head .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    color: #D4AF37;
    text-decoration: none;
}
.auth-head .brand:hover { color: #F0D060; }
.auth-head .brand i { font-size: 1.35rem; }
.auth-head p { margin: 8px 0 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); font-weight: 400; }

.auth-body { padding: 28px; }

/* ---- Shared themed form controls (used by auth + account) ---- */
.field { margin-bottom: 18px; }
.field > label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1B3A4B;
}
.control {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    background: #F8F9FA;
    border: 1.5px solid #e3e6ea;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.control:focus {
    outline: none;
    background: #fff;
    border-color: #D4AF37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}
.control::placeholder { color: #9aa0a6; }

.field-error {
    margin-top: 6px;
    font-size: 0.82rem;
    color: #c0392b;
    font-weight: 600;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    user-select: none;
}
.remember input { width: 17px; height: 17px; accent-color: #D4AF37; cursor: pointer; }

/* ---- Buttons ---- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    color: #1B3A4B;
    background: linear-gradient(135deg, #F0D060 0%, #D4AF37 100%);
    border: none;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.35);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212, 175, 55, 0.45); filter: brightness(1.03); }
.btn-gold:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px;
    font-family: 'Cairo', sans-serif; font-size: 0.95rem; font-weight: 700;
    color: #1B3A4B; background: transparent;
    border: 1.5px solid #1B3A4B; border-radius: 40px; cursor: pointer;
    transition: all 0.2s ease;
}
.btn-ghost:hover { background: #1B3A4B; color: #fff; }

.btn-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px;
    font-family: 'Cairo', sans-serif; font-size: 0.95rem; font-weight: 800;
    color: #fff; background: #c0392b; border: none; border-radius: 40px; cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-danger:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ---- Meta row (submit + secondary link) ---- */
.auth-actions { margin-top: 22px; }
.auth-alt {
    margin-top: 18px;
    text-align: center;
    font-size: 0.92rem;
    color: #555;
}
.auth-alt a { color: #1B3A4B; font-weight: 800; text-decoration: none; }
.auth-alt a:hover { color: #D4AF37; }
.auth-inline-link { font-size: 0.86rem; color: #2E8B57; font-weight: 700; text-decoration: none; }
.auth-inline-link:hover { text-decoration: underline; }

/* ---- Flash / status banners ---- */
.flash {
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.flash-success { background: rgba(46, 139, 87, 0.12); color: #1e6b41; }
.flash-info { background: rgba(212, 175, 55, 0.15); color: #8a6d1a; }

.field-hint { margin-top: 6px; font-size: 0.82rem; color: #777; }

/* ===== Account area (profile) — sits inside the site chrome ===== */
.account-wrap { max-width: 720px; margin: 0 auto; padding: 40px 20px 80px; }
.account-head { text-align: center; margin-bottom: 30px; }
.account-head h1 { font-size: 1.9rem; font-weight: 900; color: #1B3A4B; }
.account-head p { color: #555; margin-top: 6px; }
.account-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 24px;
}
.account-card > h2 { font-size: 1.2rem; font-weight: 800; color: #1B3A4B; margin-bottom: 4px; }
.account-card > .sub { color: #777; font-size: 0.9rem; margin-bottom: 22px; }
.account-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.account-actions .btn-gold, .account-actions .btn-ghost, .account-actions .btn-danger { width: auto; }

@media (max-width: 480px) {
    .auth-body { padding: 22px; }
    .account-card { padding: 22px; }
}
