/* ═══════════════════════════════════════════════════════════
   QURAN LOGIN — Beautiful Islamic WordPress Login Page
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Tajawal:wght@300;400;500;700&display=swap');

/* ── Reset & Base ───────────────────────────────────────── */

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

:root {
    --accent:        #E8A020;
    --accent-dark:   #c47d0a;
    --accent-glow:   rgba(232, 160, 32, 0.4);
    --glass-bg:      rgba(10, 15, 25, 0.72);
    --glass-border:  rgba(232, 160, 32, 0.25);
    --text-primary:  #f5f0e8;
    --text-muted:    rgba(245, 240, 232, 0.55);
    --input-bg:      rgba(255, 255, 255, 0.07);
    --input-border:  rgba(232, 160, 32, 0.3);
    --error-bg:      rgba(220, 50, 47, 0.15);
    --error-border:  rgba(220, 50, 47, 0.6);
    --success-bg:    rgba(32, 180, 100, 0.15);
    --success-border:rgba(32, 180, 100, 0.6);
    --radius:        14px;
    --radius-sm:     8px;
    --font-arabic:   'Amiri', serif;
    --font-ui:       'Tajawal', sans-serif;
}

html, body {
    height: 100%;
    min-height: 100vh;
}

body.quran-login-page {
    font-family: var(--font-ui);
    background: #050a14;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
    overflow-x: hidden;
}

/* ── Background ─────────────────────────────────────────── */

.quran-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Islamic geometric SVG pattern */
.quran-bg-pattern {
    position: absolute;
    inset: 0;
    background-color: #050a14;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cdefs%3E%3Cstyle%3E.s%7Bfill:none;stroke:%23c47d0a;stroke-width:0.6;opacity:0.35%7D%3C/style%3E%3C/defs%3E%3Cpolygon class='s' points='60,5 115,32.5 115,87.5 60,115 5,87.5 5,32.5'/%3E%3Cpolygon class='s' points='60,18 102,40 102,80 60,102 18,80 18,40'/%3E%3Cline class='s' x1='60' y1='5' x2='60' y2='115'/%3E%3Cline class='s' x1='5' y1='32.5' x2='115' y2='87.5'/%3E%3Cline class='s' x1='115' y1='32.5' x2='5' y2='87.5'/%3E%3Ccircle class='s' cx='60' cy='60' r='20'/%3E%3Ccircle class='s' cx='60' cy='60' r='8'/%3E%3Cpolygon class='s' points='60,40 72,53 68,68 52,68 48,53'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    opacity: 1;
}

/* Radial gradient overlay — dark center vignette with colour */
.quran-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(140, 80, 0, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 100% 100% at 50% 100%, rgba(5, 10, 20, 0.9) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 0%, rgba(5, 10, 20, 0.7) 0%, transparent 60%),
        linear-gradient(180deg, rgba(5,10,20,0.55) 0%, rgba(5,10,20,0.35) 50%, rgba(5,10,20,0.65) 100%);
}

/* Floating golden dust particles */
.quran-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    animation: float-particle 8s infinite ease-in-out;
    animation-delay: calc(var(--i) * 0.65s);
    left:   calc(8% + var(--i) * 7.5%);
    top:    calc(10% + (var(--i) % 5) * 18%);
}

@keyframes float-particle {
    0%   { opacity: 0;   transform: translateY(0)    scale(0.5); }
    30%  { opacity: 0.7;                                           }
    70%  { opacity: 0.5;                                           }
    100% { opacity: 0;   transform: translateY(-80px) scale(1.2); }
}

/* ── Card ───────────────────────────────────────────────── */

.quran-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
}

.quran-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(232,160,32,0.08),
        0 8px 40px rgba(0,0,0,0.6),
        0 0 80px rgba(232,160,32,0.06) inset;
    animation: card-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Logo ───────────────────────────────────────────────── */

.quran-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 14px;
    animation: logo-in 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes logo-in {
    from { opacity: 0; transform: scale(0.7) rotate(-20deg); }
    to   { opacity: 1; transform: scale(1)   rotate(0);      }
}

.quran-crescent {
    font-size: 52px;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(232,160,32,0.2);
    animation: pulse-glow 3s ease-in-out infinite;
}

.quran-star {
    font-size: 18px;
    color: var(--accent);
    margin-top: -18px;
    margin-left: -8px;
    opacity: 0.8;
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(232,160,32,0.2); }
    50%       { text-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(232,160,32,0.35); }
}

/* ── Quran Verse ────────────────────────────────────────── */

.quran-verse {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
    animation: verse-in 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes verse-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.verse-arabic {
    font-family: var(--font-arabic);
    font-size: 22px;
    color: var(--accent);
    line-height: 1.6;
    direction: rtl;
    margin-bottom: 6px;
    text-shadow: 0 0 15px rgba(232,160,32,0.3);
}

.verse-translation {
    font-size: 11.5px;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.02em;
}

/* ── Title ──────────────────────────────────────────────── */

.quran-title {
    font-family: var(--font-ui);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* ── Form Fields ────────────────────────────────────────── */

.quran-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quran-field {
    position: relative;
    display: flex;
    align-items: center;
}

.quran-field .field-icon {
    position: absolute;
    left: 14px;
    font-size: 15px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 2;
}

.quran-field input[type="text"],
.quran-field input[type="email"],
.quran-field input[type="password"] {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    padding: 13px 44px 13px 40px;
    font-family: var(--font-ui);
    font-size: 14.5px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
}

.quran-field input::placeholder {
    color: var(--text-muted);
}

.quran-field input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Password toggle button */
.toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-muted);
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
    z-index: 2;
}

.toggle-pw:hover { color: var(--accent); }

/* ── Hint ───────────────────────────────────────────────── */

.quran-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: -6px;
    padding-left: 4px;
    line-height: 1.5;
}

/* ── Checkbox ───────────────────────────────────────────── */

.quran-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.quran-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    accent-color: var(--accent);
    cursor: pointer;
}

.quran-checkbox a {
    color: var(--accent);
    text-decoration: none;
}
.quran-checkbox a:hover { text-decoration: underline; }

/* ── Submit Button ──────────────────────────────────────── */

.quran-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 4px 20px rgba(232,160,32,0.35);
    margin-top: 4px;
}

.quran-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(232,160,32,0.5);
    filter: brightness(1.08);
}

.quran-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(232,160,32,0.3);
}

/* ── Links ──────────────────────────────────────────────── */

.quran-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    padding-top: 4px;
}

.quran-links a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
.quran-links a:hover { color: #fff; }

.back-link { justify-content: center; }
.back-link a { color: var(--text-muted); font-size: 12px; }
.back-link a:hover { color: var(--text-primary); }

/* ── Notices ────────────────────────────────────────────── */

.quran-errors,
.quran-notice {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.quran-errors {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: #ff8a80;
}

.quran-notice.success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: #69f0ae;
}

/* ── WordPress default login page overrides ─────────────── */

body.login {
    background: transparent !important;
}

body.login #login {
    width: 100%;
    max-width: 440px;
    padding: 0;
}

body.login #loginform,
body.login #registerform,
body.login #lostpasswordform {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 24px !important;
    padding: 40px 36px !important;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6) !important;
    backdrop-filter: blur(20px);
}

body.login h1 a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--accent);
    text-decoration: none;
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    margin-bottom: 6px;
}

body.login h1 a::before { content: "☽"; }

body.login .button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 4px 20px rgba(232,160,32,0.35) !important;
    font-family: var(--font-ui) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-ui) !important;
}

body.login label { color: var(--text-muted) !important; font-family: var(--font-ui) !important; }
body.login a { color: var(--accent) !important; }
body.login .message, body.login .notice { border-radius: var(--radius-sm) !important; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 480px) {
    .quran-card { padding: 28px 20px; border-radius: 18px; }
    .verse-arabic { font-size: 18px; }
    .quran-title { font-size: 22px; }
}
