/* ===================================
   Glassmorphism Premium Design - قيمّ
   Advanced UI with Glass Effects
   =================================== */

/* Note: الخطوط محمّلة محلياً في inline CSS في الـ head - لا حاجة لـ @import */

/* CSS Variables */
:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --primary-glow: rgba(60, 203, 138, 0.4);
    --secondary-glow: rgba(45, 212, 191, 0.3);
    
    /* Light Mode Colors */
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.18);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --gradient-start: #0F172A;
    --gradient-end: #1E293B;
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #F8FAFC;
    --bg-secondary: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border-color: rgba(15, 23, 42, 0.1);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(15, 23, 42, 0.1);
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: rgba(15, 23, 42, 0.15);
    --gradient-start: #FFFFFF;
    --gradient-end: #F1F5F9;
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.1);
}

/* Dark Mode (Default) */
[data-theme="dark"] {
    --bg-primary: #0F172A;
    --bg-secondary: #1E293B;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.18);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --gradient-start: #0F172A;
    --gradient-end: #1E293B;
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    direction: rtl;
    background: var(--bg-primary);
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ==================== Header ==================== */
.header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.7) 0%, 
        rgba(30, 41, 59, 0.65) 50%,
        rgba(15, 23, 42, 0.7) 100%
    );
    background-size: 200% 200%;
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 -20px 60px rgba(60, 203, 138, 0.03) inset;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, 
        transparent 0%,
        rgba(60, 203, 138, 0.3) 25%,
        rgba(45, 212, 191, 0.5) 50%,
        rgba(60, 203, 138, 0.3) 75%,
        transparent 100%
    ) 1;
    animation: headerGlow 8s ease-in-out infinite, headerGradient 10s ease infinite;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    animation: headerShimmer 3s ease-in-out infinite;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(60, 203, 138, 0.5) 50%,
        transparent 100%
    );
    animation: borderFlow 4s ease-in-out infinite;
}

@keyframes headerGlow {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.05) inset,
            0 -20px 60px rgba(60, 203, 138, 0.03) inset;
    }
    50% {
        box-shadow: 
            0 12px 48px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset,
            0 -20px 60px rgba(60, 203, 138, 0.08) inset;
    }
}

@keyframes headerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes headerShimmer {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 200%; opacity: 0; }
}

@keyframes borderFlow {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50px);
    }
    50% {
        opacity: 1;
        transform: translateX(50px);
    }
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 28px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.logo::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(60, 203, 138, 0.3) 0%,
        rgba(45, 212, 191, 0.3) 50%,
        rgba(168, 85, 247, 0.3) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
}

.logo:hover {
    color: #10B981;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 0 0 1px rgba(16, 185, 129, 0.3),
        0 8px 24px rgba(16, 185, 129, 0.2);
}

.logo:hover::before {
    opacity: 1;
}

.logo .logo-icon {
    font-size: 36px;
    animation: logoIconFloat 4s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(60, 203, 138, 0.4));
}

@keyframes logoIconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-4px) rotate(-5deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateY(-4px) rotate(5deg);
    }
}

.logo .logo-text {
    background: linear-gradient(135deg, 
        #10B981 0%, 
        #3B82F6 50%, 
        #A855F7 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoTextGradient 4s ease infinite;
    filter: drop-shadow(0 0 20px rgba(60, 203, 138, 0.3));
}

@keyframes logoTextGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(60, 203, 138, 0.1) 50%,
        transparent 100%
    );
    transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: linear-gradient(90deg, #10B981, #3B82F6);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(60, 203, 138, 0.6);
}

.nav-link:hover {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 1px rgba(16, 185, 129, 0.2),
        0 8px 16px rgba(16, 185, 129, 0.15);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover::after {
    left: 10%;
    right: 10%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-outline {
    padding: 12px 24px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    color: #10B981;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(16, 185, 129, 0.1) 0%,
        rgba(59, 130, 246, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s;
}

.btn-outline:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10B981;
    transform: translateY(-3px);
    box-shadow: 
        0 0 0 1px rgba(16, 185, 129, 0.3) inset,
        0 8px 24px rgba(16, 185, 129, 0.25);
    color: #3B82F6;
}

.btn-outline:hover::before {
    opacity: 1;
}

.btn-primary {
    padding: 12px 24px;
    background: linear-gradient(135deg, 
        #3CCB8A 0%, 
        #2DD4BF 50%, 
        #A855F7 100%
    );
    background-size: 200% 200%;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 
        0 8px 20px rgba(60, 203, 138, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    animation: gradientShift 3s ease infinite;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(60, 203, 138, 0.5),
        0 0 40px rgba(168, 85, 247, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 50%, #8B5CF6 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 12px rgba(16, 185, 129, 0.3),
        0 0 0 2px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
    font-size: 20px;
    animation: gradientShift 4s ease infinite;
    margin-left: 0;
    margin-right: var(--space-2);
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(60, 203, 138, 0.5),
            0 0 0 4px rgba(255, 255, 255, 0.1) inset,
            0 0 60px rgba(60, 203, 138, 0.3);
    }
    50% {
        box-shadow: 
            0 15px 40px rgba(60, 203, 138, 0.7),
            0 0 0 6px rgba(255, 255, 255, 0.15) inset,
            0 0 80px rgba(168, 85, 247, 0.5);
    }
}

.theme-toggle:hover {
    transform: translateY(-6px) scale(1.08) rotate(90deg);
    box-shadow: 
        0 20px 50px rgba(60, 203, 138, 0.7),
        0 0 0 6px rgba(255, 255, 255, 0.2) inset,
        0 0 100px rgba(168, 85, 247, 0.6);
}

.theme-toggle:active {
    transform: translateY(-3px) scale(1.02) rotate(90deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
    animation: iconSpin 20s linear infinite;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 56px;
        height: 56px;
        bottom: 20px;
        left: 20px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-actions {
        gap: 12px;
    }
    
    .btn-outline,
    .btn-primary {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Animated Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(60, 203, 138, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    z-index: 0;
    animation: bgPulse 20s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Floating Particles */
.auth-main::after {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle, rgba(60, 203, 138, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particlesMove 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes particlesMove {
    from { background-position: 0 0; }
    to { background-position: 50px 50px; }
}

/* Auth Main Container */
.auth-main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    position: relative;
    z-index: 1;
}

/* Glass Card */
.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
}

/* Animated Glow Effect Behind Card */
.auth-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(60, 203, 138, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    animation: cardGlow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes cardGlow {
    0%, 100% { 
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 56px 48px;
    box-shadow: 
        var(--glass-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        var(--glass-shadow),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 30px 80px rgba(0, 0, 0, 0.4);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Card Glow Effect */
.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(60, 203, 138, 0.15) 0%, transparent 50%),
        radial-gradient(circle, rgba(168, 85, 247, 0.1) 30%, transparent 70%);
    opacity: 0;
    transition: opacity 0.8s ease;
    animation: glowRotate 15s linear infinite;
}

.auth-card:hover::before {
    opacity: 1;
}

@keyframes glowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Shimmer Effect */
.auth-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-logo-icon {
    font-size: 56px;
    filter: drop-shadow(0 0 30px var(--primary-glow));
    animation: iconFloat 4s ease-in-out infinite, iconPulse 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-12px) rotate(-5deg); }
    75% { transform: translateY(-8px) rotate(5deg); }
}

@keyframes iconPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 30px var(--primary-glow));
    }
    50% { 
        filter: drop-shadow(0 0 50px var(--primary-glow)) 
                drop-shadow(0 0 80px rgba(168, 85, 247, 0.3));
    }
}

.auth-logo-text {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 50%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-shadow: 0 0 40px rgba(60, 203, 138, 0.3);
    animation: textShine 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes textShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Form Elements */
.auth-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 16px 52px 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.form-input::placeholder {
    color: var(--text-muted);
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 
        0 0 0 4px rgba(16, 185, 129, 0.15), 
        0 0 30px rgba(16, 185, 129, 0.25),
        0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-input:focus::placeholder {
    opacity: 0.5;
    transform: translateX(10px);
}

.form-icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.form-input:focus ~ .form-icon {
    color: #10B981;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 50%, #A855F7 100%);
    background-size: 200% 200%;
    color: white;
    box-shadow: 
        0 12px 30px rgba(16, 185, 129, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(16, 185, 129, 0.5),
        0 0 60px rgba(168, 85, 247, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-submit {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 18px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    backdrop-filter: blur(20px) saturate(180%);
    animation: alertSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    font-weight: 500;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%
    );
    animation: alertShimmer 2s ease-in-out infinite;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes alertShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #FCA5A5;
    box-shadow: 
        0 8px 24px rgba(239, 68, 68, 0.3),
        0 0 0 1px rgba(239, 68, 68, 0.1) inset;
}

.alert-error::after {
    content: '⚠';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.3;
    animation: iconPulse 2s ease-in-out infinite;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6EE7B7;
    box-shadow: 
        0 8px 24px rgba(16, 185, 129, 0.3),
        0 0 0 1px rgba(16, 185, 129, 0.1) inset;
}

.alert-success::after {
    content: '✓';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.3;
    animation: iconPulse 2s ease-in-out infinite;
}

/* Checkbox & Links */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid rgba(60, 203, 138, 0.3);
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkbox-group input[type="checkbox"]:hover {
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.checkbox-group input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
    border-color: #10B981;
    box-shadow: 
        0 0 0 4px rgba(16, 185, 129, 0.15),
        0 0 30px rgba(16, 185, 129, 0.3);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 16px;
    font-weight: 900;
    animation: checkPop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes checkPop {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

.checkbox-group label {
    font-size: 15px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
}

.checkbox-group label:hover {
    color: #10B981;
}

.auth-link {
    color: #10B981;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding-bottom: 2px;
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10B981, #3B82F6);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.auth-link:hover {
    color: #3B82F6;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.auth-link:hover::after {
    width: 100%;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(16, 185, 129, 0.3) 20%,
        rgba(59, 130, 246, 0.5) 50%,
        rgba(16, 185, 129, 0.3) 80%,
        transparent 100%
    );
    position: relative;
    overflow: hidden;
}

.auth-divider::before {
    animation: dividerShineLeft 3s ease-in-out infinite;
}

.auth-divider::after {
    animation: dividerShineRight 3s ease-in-out infinite;
}

@keyframes dividerShineLeft {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes dividerShineRight {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.auth-divider span {
    padding: 0 20px;
    position: relative;
    background: linear-gradient(135deg, #10B981, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-logo-text {
        font-size: 32px;
    }
    
    .auth-logo-icon {
        font-size: 40px;
    }
    
    .form-input {
        font-size: 16px;
        padding: 12px 44px 12px 14px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .auth-main {
        padding: 80px 16px 40px;
    }
    
    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 22px;
    }

    .auth-logo-text {
        font-size: 28px;
    }
    
    .auth-logo-icon {
        font-size: 36px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
    
    .form-label {
        font-size: 13px;
    }
    
    .form-input {
        font-size: 15px;
        padding: 11px 40px 11px 12px;
    }
    
    .form-icon {
        font-size: 16px;
        left: 12px;
    }
}

/* ==================== Footer Styles ==================== */
.footer {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(60, 203, 138, 0.1);
    margin-top: 80px;
    /* إزالة blur من footer لتحسين الأداء - غير ضروري */
    /* backdrop-filter: blur(20px); */
    /* -webkit-backdrop-filter: blur(20px); */
    transition: all 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col {
    min-width: 0;
}

.footer-about {
    grid-column: span 1;
    padding-left: 10px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 10px rgba(60, 203, 138, 0.3));
}

.footer-logo .logo-text {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 90%;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    color: #10B981;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
}

.social-link:hover {
    background: linear-gradient(135deg, #10B981 0%, #3B82F6 100%);
    border-color: #10B981;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.footer-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #10B981 0%, transparent 100%);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14.5px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: #10B981;
    position: absolute;
    bottom: -2px;
    right: 0;
    transition: width 0.3s;
}

.footer-links a:hover {
    color: #10B981;
    transform: translateX(-5px);
}

.footer-links a:hover::before {
    width: 100%;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.6;
}

.footer-contact i {
    color: #10B981;
    margin-top: 4px;
    font-size: 15px;
    min-width: 16px;
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #10B981;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding-top: 24px;
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }
    
    .footer-about {
        grid-column: span 3;
        max-width: 100%;
        padding-left: 0;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .footer-about {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 32px;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .footer-title {
        font-size: 16px;
        text-align: center;
    }
    
    .footer-title::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-links,
    .footer-contact {
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .copyright {
        font-size: 13px;
    }
}
