/* ══════════════════════════════════════════════════════════════════
   AUTH STANDALONE PAGES  —  forgot-password.php & reset-password.php
   These pages load ONLY fonts.css + this file. They are full-screen
   centred cards, completely independent from the admin panel layout.
   ══════════════════════════════════════════════════════════════════ */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:      #0a4f6e;
    --primary-dark: #072238;
    --bg-deep:      #060e1a;
    --accent:       #fbbf24;
    --accent-dark:  #d97706;
}

html, body { min-height: 100%; background: var(--bg-deep); }
body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    position: relative;
    overflow-x: hidden;
}
body[dir="rtl"] { font-family: 'Zain', 'Segoe UI', system-ui, sans-serif; }

/* ── Background: dot grid ───────────────────────────────────────── */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none; z-index: 0;
}

/* ── Background: glow blob ──────────────────────────────────────── */
body::after {
    content: '';
    position: fixed;
    width: 600px; height: 600px;
    top: -150px; left: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10,79,110,.5) 0, transparent 70%);
    filter: blur(72px);
    pointer-events: none; z-index: 0;
    animation: blobPulse 9s ease-in-out infinite;
}
@keyframes blobPulse {
    0%, 100% { transform: scale(1);   opacity: .7; }
    50%       { transform: scale(1.2); opacity: 1;  }
}

/* ── Shared card shell ──────────────────────────────────────────── */
.fp-card,
.rp-card {
    position: relative; z-index: 2;
    width: 100%; max-width: 440px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,.45);
}

/* ── Card header band ───────────────────────────────────────────── */
.fp-header,
.rp-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 28px 32px 24px;
    display: flex; align-items: center; gap: 14px;
    position: relative; overflow: hidden;
}
.fp-header::after,
.rp-header::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.fp-header__logo,
.rp-header__logo { height: 44px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.3)); }
.fp-header__text,
.rp-header__text { display: flex; flex-direction: column; gap: 2px; }
.fp-header__name,
.rp-header__name { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -.1px; }
.fp-header__sub,
.rp-header__sub { font-size: 11px; color: rgba(255,255,255,.5); font-weight: 500; }

/* ── Card body ──────────────────────────────────────────────────── */
.fp-body,
.rp-body { padding: 32px; }
.fp-title,
.rp-title { font-size: 22px; font-weight: 800; color: #0f1f2e; margin-bottom: 6px; letter-spacing: -.2px; }
.fp-desc,
.rp-desc { font-size: 14px; color: #6b7c8d; line-height: 1.7; margin-bottom: 26px; }

/* ── Alert boxes ────────────────────────────────────────────────── */
.fp-alert,
.rp-alert {
    display: flex; align-items: flex-start; gap: 10px;
    border-radius: 8px; padding: 13px 14px;
    font-size: 14px; margin-bottom: 22px; line-height: 1.55;
}
.fp-alert svg, .rp-alert svg { flex-shrink: 0; margin-top: 1px; }
.fp-alert--success, .rp-alert--success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.fp-alert--info                        { background: #eff6ff; border: 1px solid #93c5fd; color: #1e3a5f; }
.fp-alert--danger, .rp-alert--danger   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }

/* ── Dev link box (forgot-password only) ────────────────────────── */
.fp-devbox {
    background: #fef3c7; border: 1.5px solid #fbbf24;
    border-radius: 8px; padding: 14px 16px; margin-bottom: 20px;
}
.fp-devbox__label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    color: #92400e; letter-spacing: .08em; margin-bottom: 6px;
}
.fp-devbox p  { font-size: 13px; color: #78350f; margin-bottom: 8px; line-height: 1.5; }
.fp-devbox a  { font-size: 12px; color: #0e6b8a; text-decoration: underline; word-break: break-all; }

/* ── Form fields ────────────────────────────────────────────────── */
.fp-field, .rp-field { margin-bottom: 18px; }
.fp-field label,
.rp-field label {
    display: block; font-size: 12px; font-weight: 700;
    color: #4a5568; text-transform: uppercase;
    letter-spacing: .5px; margin-bottom: 7px;
}
.fp-field input,
.rp-field input {
    width: 100%; padding: 12px 14px;
    border: 1.5px solid #dde3ea; border-radius: 8px;
    font-size: 15px; color: #0f1f2e; background: #fff;
    font-family: inherit; outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.fp-field input:focus,
.rp-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,79,110,.1); }

/* ── Buttons ────────────────────────────────────────────────────── */
.fp-btn, .rp-btn {
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #072238; border: none; border-radius: 8px;
    font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer;
    box-shadow: 0 4px 14px rgba(251,191,36,.35);
    transition: opacity .15s, transform .12s, box-shadow .15s;
}
.fp-btn:hover, .rp-btn:hover {
    opacity: .92; transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(251,191,36,.45);
}
.fp-btn:active, .rp-btn:active { transform: scale(.98); }

.fp-btn--outline, .rp-btn--outline {
    display: block; text-align: center; text-decoration: none;
    padding: 13px; width: 100%;
    border: 1.5px solid var(--primary); border-radius: 8px;
    font-size: 15px; font-weight: 700; color: var(--primary);
    transition: background .15s;
}
.fp-btn--outline:hover, .rp-btn--outline:hover { background: rgba(10,79,110,.06); }

.fp-back, .rp-back {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 20px; font-size: 13px; color: #6b7c8d;
    text-decoration: none; transition: color .15s;
}
.fp-back:hover, .rp-back:hover { color: var(--primary); }

/* ── Countdown / resend ─────────────────────────────────────────── */
#rl-ready a { font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
#rl-ready a:hover { text-decoration: underline; }

/* ── Card footer ────────────────────────────────────────────────── */
.fp-foot, .rp-foot {
    padding: 16px 32px 24px;
    border-top: 1px solid #f0f4f8;
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.fp-lang, .rp-lang { display: flex; gap: 6px; }
.fp-lang a, .rp-lang a {
    font-size: 12px; color: #6b7c8d; text-decoration: none;
    padding: 2px 6px; border-radius: 4px;
    transition: background .13s, color .13s;
}
.fp-lang a:hover, .rp-lang a:hover { background: #f0f4f8; color: #0f1f2e; }
.fp-powered, .rp-powered { font-size: 11px; color: #a0aec0; }
.fp-powered a, .rp-powered a { color: #6b7c8d; text-decoration: none; }
