:root {
    /* "Modern Elite" Pleasant Palette */
    --elite-navy: #0f172a;
    --elite-indigo: #1e1b4b;
    --elite-cyan: #22d3ee;
    --elite-cyan-soft: rgba(34, 211, 238, 0.1);
    --elite-silver: #e2e8f0;
    --elite-pearl: #f8fafc;
    
    --elite-primary: #1e1b4b;
    --elite-accent: #22d3ee;
    --elite-accent-gradient: linear-gradient(135deg, #22d3ee, #0ea5e9);
    
    --pure-white: #ffffff;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-400: #94a3b8;
    
    /* Elegant Gradients */
    --bg-gradient: radial-gradient(circle at top right, #1e1b4b, #0f172a);
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.6);
    --elite-shadow: 0 40px 80px -15px rgba(15, 23, 42, 0.15);
}

[data-theme="dark"] {
    --bg-gradient: radial-gradient(circle at top right, #020617, #0f172a);
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.05);
    --elite-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.5);
    --pure-white: #f1f5f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Inter', sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    color: var(--slate-900);
}

[data-theme="dark"] body { color: var(--pure-white); }

/* Aurora Background Elements for a "Pleasant" feel */
.elite-bg-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-gradient);
}

.aurora-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    animation: eliteAurora 20s infinite alternate ease-in-out;
}

.glow-1 {
    width: 700px;
    height: 700px;
    background: var(--elite-accent-gradient);
    top: -300px;
    left: -200px;
    opacity: 0.15;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: #6366f1; /* Indigo */
    bottom: -200px;
    right: -100px;
    opacity: 0.15;
}

@keyframes eliteAurora {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.2); }
}

/* Elite Majestic Card */
.majestic-card {
    width: 100%;
    max-width: 500px;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 35px;
    padding: 50px;
    box-shadow: var(--elite-shadow);
    position: relative;
    z-index: 10;
    animation: eliteEntrance 1s ease-out;
}

@keyframes eliteEntrance {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Header & Logo */
.elite-header {
    text-align: center;
    margin-bottom: 35px;
}

.elite-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--elite-accent-gradient);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 12px 25px rgba(34, 211, 238, 0.3);
}

.elite-logo i {
    font-size: 32px;
    color: white;
}

.elite-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--elite-navy);
}

[data-theme="dark"] .elite-title { color: var(--elite-cyan); }

/* Form Fields */
.elite-field-group {
    margin-bottom: 25px;
}

.elite-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--slate-700);
}

[data-theme="dark"] .elite-label { color: var(--slate-400); }

.elite-input-wrapper {
    position: relative;
    background: rgba(241, 245, 249, 0.6);
    border: 2px solid transparent;
    border-radius: 18px;
    transition: 0.3s;
}

[data-theme="dark"] .elite-input-wrapper { background: rgba(30, 41, 59, 0.4); }

.elite-input-wrapper:focus-within {
    background: white;
    border-color: var(--elite-cyan);
    box-shadow: 0 0 0 5px var(--elite-cyan-soft);
}

[data-theme="dark"] .elite-input-wrapper:focus-within { background: var(--slate-900); }

.elite-input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    color: inherit;
}

[dir="rtl"] .elite-input-wrapper input { padding: 16px 50px 16px 20px; }

.elite-input-wrapper i.field-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--slate-400);
    transition: 0.3s;
}

[dir="rtl"] .elite-input-wrapper i.field-icon { left: auto; right: 18px; }

.elite-input-wrapper:focus-within i.field-icon {
    color: var(--elite-cyan);
}

/* Modern Elite Button */
.elite-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 18px;
    background: var(--elite-accent-gradient);
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.25);
}

.elite-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.4);
}

/* Social Login */
.elite-social-row {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.elite-social-btn {
    flex: 1;
    height: 55px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

[data-theme="dark"] .elite-social-btn { 
    background: var(--slate-800); 
    border-color: var(--slate-700); 
    color: white;
}

.elite-social-btn:hover {
    background: var(--elite-cyan-soft);
    border-color: var(--elite-cyan);
}

/* Float Controls */
.elite-controls {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 12px;
}

[dir="rtl"] .elite-controls { right: auto; left: 30px; }

.elite-ctrl-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--elite-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

[data-theme="dark"] .elite-ctrl-btn { color: var(--elite-cyan); }

.elite-ctrl-btn:hover {
    background: var(--elite-cyan);
    color: white;
}

/* Modern Elite Link */
.elite-link {
    color: var(--elite-accent);
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}

.elite-link:hover {
    opacity: 0.8;
}

/* OTP Spacing */
.elite-otp-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.elite-otp-input {
    width: 60px;
    height: 70px;
    border-radius: 16px;
    border: 2px solid transparent;
    background: rgba(241, 245, 249, 0.6);
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: inherit;
    outline: none;
    transition: 0.3s;
}

[data-theme="dark"] .elite-otp-input { background: rgba(30, 41, 59, 0.4); }

.elite-otp-input:focus {
    background: white;
    border-color: var(--elite-cyan);
    transform: translateY(-5px);
}

[data-theme="dark"] .elite-otp-input:focus { background: var(--slate-900); }

/* Roles Grid */
.elite-roles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.elite-role-card {
    padding: 20px;
    border-radius: 20px;
    border: 2px solid transparent;
    background: rgba(241, 245, 249, 0.6);
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

[data-theme="dark"] .elite-role-card { background: rgba(30, 41, 59, 0.4); }

.elite-role-card.active {
    background: var(--elite-cyan-soft);
    border-color: var(--elite-cyan);
}

.elite-role-card i {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--slate-400);
}

.elite-role-card.active i { color: var(--elite-cyan); }

/* Responsive */
@media (max-width: 550px) {
    .majestic-card {
        padding: 40px 25px;
        border-radius: 0;
        min-height: 100vh;
        max-width: none;
    }
}
