/* Theme Styles */
body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

body.dark-theme {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --border-color: #30363d;
    --card-bg: #161b22;
    --shadow: rgba(0, 0, 0, 0.3);
}

body.light-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body.dark-theme {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Common Auth Page Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: start;
    justify-content: center;
    padding: 20px;
    position: relative;
    margin-top: 100px;
    overflow: hidden;
    background: var(--center-box-gradient-bg);
}
.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--center-box-gradient-before);
    animation: meshGradient 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes meshGradient {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    33% { opacity: 0.8; transform: scale(1.1) rotate(1deg); }
    66% { opacity: 0.9; transform: scale(0.95) rotate(-1deg); }
}

/* Floating Orbs */
.auth-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--center-box-gradient-after);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
    z-index: 0;
    filter: blur(40px);
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 50px) scale(1.1); }
    66% { transform: translate(20px, -30px) scale(0.9); }
}

.auth-page .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-300);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    z-index: 2;
}
.auth-page .password-toggle:hover {
    color: var(--primary);
}
.auth-page .form-control:disabled {
    background: var(--gray-100);
    color: var(--gray-300);
    cursor: not-allowed;
    opacity: 0.7;
}
.auth-page .input-icon {
    position: absolute;
    left: 1rem;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--gray-300);
    transition: color 0.3s ease;
    pointer-events: none;
    font-size: 1.1em;
}

/* Form Grid (for name fields) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary, #f8fafc);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.label-optional {
    font-weight: 400;
    color: var(--text-muted, #64748b);
    font-size: 0.8rem;
}

.form-control {
    width: 100%;
    padding: 14px 40px;
    padding-right: 48px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px !important;
    color: var(--text-primary, #f8fafc);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted, #64748b);
}

.form-control:focus {
    background: transparent;
    color:var(--text-primary, #f8fafc);
}

[dir="rtl"] .auth-page .input-icon {
    left: auto;
    right: 1rem;
}
.auth-page .form-footer {
    margin-top: 2rem;
    padding: 0;
    text-align: center;
    background: none;
    border-top: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
/* CTA Section Styles */
.cta {
    padding: 80px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: #fff;
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.95;
}
/* common.css - shared styles for Eyenak AI */

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

body {
    font-family: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    overflow-x: hidden;
}

header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

nav, .nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a, .nav-link {
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    transition: color 0.2s;
}

nav a:hover, .nav-link:hover {
    color: #764ba2;
}

/* main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
} */
.close-modal {
    padding: 0px 5px 0px 5px;
    background: var(--gray-100);
    color: var(--primary);
    border: 1px solid #393838;
}
footer {
    background: #2d2d2d;
    color: #fff;
    text-align: center;
    padding: 32px 0;
    margin-top: 60px;
}

.btn, .btn-primary, .btn-outline {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: #fff;
}

/* Enhanced Register button style */
.auth-page .btn-primary {
    width: 100%;
    padding: 0.85rem 0;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.08rem;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    box-shadow: 0 4px 16px rgba(99,102,241,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.auth-page .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.5s ease;
}

.auth-page .btn-primary:hover {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    box-shadow: 0 8px 32px rgba(99,102,241,0.18);
    transform: translateY(-2px) scale(1.03);
}

.auth-page .btn-primary:hover::before {
    left: 100%;
}

.auth-page .btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.auth-page .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-box {
    margin-bottom: 20px;
}

/* ========== Enhanced Theme Styling ========== */

/* Light Theme Overrides */
body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-hover: #dee2e6;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-primary: #dee2e6;
    --border-secondary: #e9ecef;
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Dark Theme Overrides */
body.dark-theme {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-hover: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #c9d1d9;
    --text-muted: #8b949e;
    --border-primary: #30363d;
    --border-secondary: #21262d;
    --card-bg: #161b22;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Apply theme to common elements */
body.light-theme .card,
body.light-theme .profile-card {
    background: var(--card-bg);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

body.dark-theme .card,
body.dark-theme .profile-card {
    background: var(--card-bg);
    border-color: var(--border-primary);
    color: var(--text-primary);
}

body.light-theme .card h1,
body.light-theme .card h2,
body.light-theme .card h3,
body.light-theme .card h4 {
    color: var(--text-primary);
}

body.dark-theme .card h1,
body.dark-theme .card h2,
body.dark-theme .card h3,
body.dark-theme .card h4 {
    color: var(--text-primary);
}

body.light-theme p,
body.light-theme .text-muted {
    color: var(--text-muted);
}

body.dark-theme p,
body.dark-theme .text-muted {
    color: var(--text-muted);
}
.eyenak-ai-brand{
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.6));
    display: inline-block;
    background-size: 300% 100%;
    animation: waveTextEffect 4s ease-in-out infinite, glowPulse 3s ease-in-out infinite;
    font-weight: 700;
    position: relative;
}

.eyenak-ai-brand::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #06b6d4 0%, #0ea5e9 50%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: shimmerText 2s ease-in-out infinite;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 50%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: waveEffect 3s ease-in-out infinite, textGlow 2.5s ease-in-out infinite;
}

@keyframes waveTextEffect {
    0% {
        background-position: 0% center;
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4)) drop-shadow(0 0 25px rgba(139, 92, 246, 0.3));
    }
    25% {
        background-position: 33% center;
        filter: drop-shadow(0 0 25px rgba(217, 70, 239, 0.5)) drop-shadow(0 0 40px rgba(139, 92, 246, 0.4));
    }
    50% {
        background-position: 66% center;
        filter: drop-shadow(0 0 35px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 50px rgba(217, 70, 239, 0.5));
    }
    75% {
        background-position: 100% center;
        filter: drop-shadow(0 0 25px rgba(217, 70, 239, 0.5)) drop-shadow(0 0 40px rgba(99, 102, 241, 0.4));
    }
    100% {
        background-position: 0% center;
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.4)) drop-shadow(0 0 25px rgba(139, 92, 246, 0.3));
    }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(99, 102, 241, 0.5), 0 0 20px rgba(139, 92, 246, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(217, 70, 239, 0.6), 0 0 40px rgba(139, 92, 246, 0.5);
    }
}

@keyframes shimmerText {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 0.5;
        transform: translateX(0);
    }
}

@keyframes waveEffect {
    0% {
        background-position: 0% center;
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
        text-shadow: 0 0 10px rgba(165, 180, 252, 0.3);
    }
    25% {
        background-position: 25% center;
        filter: drop-shadow(0 0 30px rgba(217, 70, 239, 0.5));
        text-shadow: 0 0 20px rgba(165, 180, 252, 0.5);
    }
    50% {
        background-position: 50% center;
        filter: drop-shadow(0 0 40px rgba(139, 92, 246, 0.8));
        text-shadow: 0 0 30px rgba(165, 180, 252, 0.7);
    }
    75% {
        background-position: 75% center;
        filter: drop-shadow(0 0 30px rgba(217, 70, 239, 0.6));
        text-shadow: 0 0 20px rgba(165, 180, 252, 0.5);
    }
    100% {
        background-position: 100% center;
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.4));
        text-shadow: 0 0 10px rgba(165, 180, 252, 0.3);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(165, 180, 252, 0.3), 0 0 20px rgba(139, 92, 246, 0.2);
        filter: brightness(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(165, 180, 252, 0.6), 0 0 40px rgba(139, 92, 246, 0.4);
        filter: brightness(1.2);
    }
}


/* ========== CTA SECTION ========== */
.cta {
    padding: 100px 40px;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%,
        rgba(139, 92, 246, 0.06) 50%,
        rgba(6, 182, 212, 0.04) 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
    filter: blur(80px);
    animation: orbFloat1 20s ease-in-out infinite;
    z-index: 0;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent);
    filter: blur(60px);
    z-index: 0;
}

.cta h2 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out;
}

.cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.cta .btn {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta .btn-primary {
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .cta {
        padding: 80px 20px;
    }

    .cta h2 {
        font-size: clamp(24px, 4vw, 36px);
    }

    .cta p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .cta .btn {
        width: 100%;
        max-width: 300px;
    }
}
.dropdown-toggle::after {
    display: none;
}