/* Glassmorphism Theme - COMPREHENSIVE FIX (Index + Auth) */

:root {
    --primary-color: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-pink: #f472b6;
    --deep-bg: #0f172a;
    /* Slate 900 */
    --surface-dark: #1e293b;
    --text-white: #ffffff;
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background: #f8fafc;
    font-family: 'Cairo', sans-serif;
    overflow-x: hidden;
}

/* =========================================
   1. HOME PAGE STYLES (Restored)
   ========================================= */

/* Hero Background */
.modern-hero {
    background-color: var(--deep-bg);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(244, 114, 182, 0.2) 0%, transparent 50%);
    position: relative;
    padding: 8rem 0 6rem;
    color: white;
}

.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Glass Card (Homepage Version) */
.glass-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    position: relative;
    z-index: 10;
}

/* 3D Wrapper for Hero Only */
.hero-3d-card .glass-card {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.hero-3d-card .glass-card:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(99, 102, 241, 0.3);
}

/* Floating Notifications */
.floating-notification {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 20;
}

/* Neon Brand Pills */
.brand-pill {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
}

.brand-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Buttons */
.btn-glow {
    position: relative;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border: none;
    color: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
    color: white;
}

/* Animation Classes */
.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   2. AUTH PAGES STYLES (Login & Register)
   ========================================= */

/* Full Screen Background */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #0f172a;
    /* Deep Blue/Black */
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(244, 114, 182, 0.15) 0px, transparent 50%);
    position: relative;
}

/* Centered Premium Card */
.auth-card-premium {
    width: 100%;
    max-width: 480px;
    /* Fixed nice width */
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow:
        0 20px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

/* Modern Inputs */
.modern-input-group {
    position: relative;
    width: 100%;
}

.modern-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    /* Space for icon */
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.modern-input:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
}

.input-icon {
    position: absolute;
    left: 1rem;
    /* LTR friendly, but we are RTL so.. */
    right: auto;
}

/* Adjust Icon for RTL */
html[dir="rtl"] .modern-input {
    padding: 0.8rem 2.8rem 0.8rem 1rem;
}

html[dir="rtl"] .input-icon {
    right: 1rem;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
}

html[dir="rtl"] .modern-input:focus+.input-icon {
    color: var(--primary-color);
}

/* Auth Buttons */
.btn-auth-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 12px;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-auth-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    padding: 0.8rem;
    border-radius: 12px;
    width: 100%;
    transition: 0.3s;
}

.btn-auth-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Mobile Fixes */
@media (max-width: 991px) {
    .modern-hero {
        padding-top: 5rem;
    }

    .hero-3d-card .glass-card {
        transform: none !important;
        margin-top: 2rem;
    }

    .auth-card-premium {
        padding: 1.5rem;
    }

    .floating-notification {
        display: none;
    }

    /* Hide floaters on mobile to prevent overflow */
}