:root {
    --bg-color: #0f172a;
    --surface-color: rgba(30, 41, 59, 0.7);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #a855f7;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.15) 0px, transparent 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 80px 20px 60px; /* top: navbar space, bottom: footer space */
    color: var(--text-main);
    box-sizing: border-box;
}

/* Global Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.3rem; font-weight: 900; color: white; text-decoration: none;
}
.nav-brand i { color: var(--primary); }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-link { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: 0.3s; }
.nav-link:hover { color: var(--primary); }

.lang-btn {
    background: rgba(255, 255, 255, 0.1); border: 1px solid var(--glass-border);
    color: white; padding: 6px 15px; border-radius: 8px; cursor: pointer; transition: 0.3s;
}

.container { width: 100%; max-width: 440px; margin-top: 60px; }

.card {
    background: var(--surface-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px; border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.logo-section { display: flex; justify-content: center; margin-bottom: 25px; }
.morad-logo {
    font-family: 'Sacramento', cursive !important;
    color: #f7dabb;
    font-size: 60px;
    position: relative;
    display: inline-block;
    line-height: 1;
    z-index: 1;
    padding-bottom: 5px;
}
.morad-logo::after {
    content: '';
    position: absolute;
    bottom: 12px; /* Adjusted so the line cuts through the bottom of M and d */
    left: -5%;
    width: 110%;
    height: 2px; /* Thinner line */
    background-color: #f7dabb;
    border-radius: 2px;
    z-index: -1;
}

h2 { font-size: 26px; margin-bottom: 10px; color: #fff; font-weight: 800; }
.subtitle { font-size: 15px; color: var(--text-muted); margin-bottom: 30px; line-height: 1.6; }

.field { text-align: inherit; margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text-main); }

.input-container { position: relative; display: flex; align-items: center; }

[dir="rtl"] .input-container i { position: absolute; right: 18px; color: var(--primary); font-size: 18px; }
[dir="ltr"] .input-container i { position: absolute; left: 18px; color: var(--primary); font-size: 18px; }

.input-container input {
    width: 100%; border-radius: 12px; border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5); font-size: 15px; transition: 0.3s; outline: none;
    color: #fff;
}

[dir="rtl"] .input-container input { padding: 14px 50px 14px 15px; }
[dir="ltr"] .input-container input { padding: 14px 15px 14px 50px; }

.input-container input:focus { border-color: var(--primary); background: rgba(15, 23, 42, 0.8); box-shadow: 0 0 15px var(--primary-glow); }

.btn-primary {
    width: 100%; padding: 15px; 
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; border: none; border-radius: 12px; font-weight: 700; font-size: 16px;
    cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px;
    margin-top: 15px; transition: 0.3s;
    box-shadow: 0 8px 20px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px var(--primary-glow); }

.footer-link { margin-top: 30px; font-size: 15px; color: var(--text-muted); text-align: center; }
.footer-link a { color: var(--primary); text-decoration: none; font-weight: 700; margin: 0 5px; }

.lang-toggle { margin-top: 25px; font-size: 14px; color: var(--text-muted); cursor: pointer; text-align: center; }
.lang-toggle span:hover { color: #fff; }

/* Footer */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    z-index: 999;
}

/* Responsiveness */
@media (max-width: 480px) {
    .navbar { padding: 10px 5%; }
    .nav-links { gap: 10px; }
    .nav-link { font-size: 0.85rem; }
    .lang-btn { padding: 4px 10px; font-size: 0.8rem; }
    .container { padding: 10px; }
    .card { padding: 25px 20px; }
    h2 { font-size: 22px; }
    .subtitle { font-size: 14px; }
}