/* ==========================================================================
   Examfriend - Premium Neon Futuristic EdTech Authentication Stylesheet
   Theme Colors:
     - Dark Navy:    #050D28
     - Deep Blue:    #071A42
     - Neon Cyan:    #00E5FF
     - Electric Blue:#087CFF
     - Neon Purple:  #A100FF
     - Pure White:   #FFFFFF
   ========================================================================== */

:root {
    --ef-bg-dark: #050D28;
    --ef-bg-deep: #071A42;
    --ef-neon-cyan: #00E5FF;
    --ef-electric-blue: #087CFF;
    --ef-neon-purple: #A100FF;
    --ef-white: #FFFFFF;
    --ef-text-muted: #94A3B8;
    --ef-border-glass: rgba(0, 229, 255, 0.22);
    --ef-card-glass: rgba(7, 26, 66, 0.78);
    --ef-input-bg: rgba(5, 13, 40, 0.72);
}

/* Reset & Base Body */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--ef-bg-dark);
    color: var(--ef-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

.auth-neon-body {
    position: relative;
    background: radial-gradient(circle at 15% 30%, rgba(8, 124, 255, 0.18) 0%, transparent 45%),
                radial-gradient(circle at 85% 70%, rgba(161, 0, 255, 0.22) 0%, transparent 50%),
                radial-gradient(circle at 50% 10%, rgba(0, 229, 255, 0.12) 0%, transparent 40%),
                var(--ef-bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Cyber Glow Background Elements */
.cyber-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}
.cyber-glow-cyan {
    top: -80px;
    right: -80px;
    width: 480px;
    height: 480px;
    background: rgba(0, 229, 255, 0.15);
}
.cyber-glow-purple {
    bottom: -100px;
    left: -100px;
    width: 520px;
    height: 520px;
    background: rgba(161, 0, 255, 0.18);
}
.cyber-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   PART 2: NAVBAR HEADER
   ========================================================================== */
.neon-navbar {
    background: rgba(5, 13, 40, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.18);
    padding: 14px 0;
    z-index: 1030;
    transition: all 0.3s ease;
}
.neon-logo-wrap {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(161, 0, 255, 0.2));
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.35);
}
.neon-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.neon-brand-text .brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--ef-white);
    letter-spacing: -0.5px;
}
.neon-brand-text .brand-name span {
    background: linear-gradient(90deg, var(--ef-neon-cyan), #38BDF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.neon-nav-link {
    color: #CBD5E1;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.neon-nav-link:hover, .neon-nav-link.active {
    color: var(--ef-neon-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}
.neon-dropdown-menu {
    background: rgba(7, 26, 66, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 229, 255, 0.15);
    padding: 8px;
}
.neon-dropdown-menu .dropdown-item {
    color: #E2E8F0;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.neon-dropdown-menu .dropdown-item:hover {
    background: rgba(0, 229, 255, 0.12);
    color: var(--ef-neon-cyan);
    transform: translateX(4px);
}
.neon-pill-btn {
    background: linear-gradient(135deg, var(--ef-neon-cyan), var(--ef-electric-blue));
    color: #030A1C !important;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 22px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.45);
    transition: all 0.3s ease;
    text-decoration: none;
}
.neon-pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.7);
    color: #000 !important;
}

/* ==========================================================================
   PART 3: HERO SECTION & ILLUSTRATION
   ========================================================================== */
.auth-neon-main {
    flex: 1 0 auto;
    position: relative;
    z-index: 10;
}
.neon-hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 10px;
    text-align: center;
}
.neon-hero-artwork-wrap {
    position: relative;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    animation: efFloatingHero 6s ease-in-out infinite alternate;
}
.neon-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 229, 255, 0.28)) drop-shadow(0 0 45px rgba(161, 0, 255, 0.25));
}
.neon-hero-caption {
    margin-top: 18px;
    font-size: 15px;
    color: #94A3B8;
    max-width: 440px;
}
.neon-hero-caption strong {
    color: var(--ef-neon-cyan);
}

@keyframes efFloatingHero {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-12px);
    }
}

/* ==========================================================================
   PARTS 4 & 5: AUTH CARDS (LOGIN & SIGNUP)
   ========================================================================== */
.neon-auth-card {
    position: relative;
    background: var(--ef-card-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 36px 38px;
    border: 1px solid var(--ef-border-glass);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
                0 0 35px rgba(0, 229, 255, 0.15),
                inset 0 0 25px rgba(0, 229, 255, 0.05);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Neon Gradient Animated Outer Border Aura */
.neon-auth-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--ef-neon-cyan), var(--ef-electric-blue), var(--ef-neon-purple), var(--ef-neon-cyan));
    background-size: 400% 400%;
    z-index: -1;
    opacity: 0.7;
    animation: neonBorderFlow 8s ease infinite;
    pointer-events: none;
}

@keyframes neonBorderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.neon-card-header {
    text-align: center;
    margin-bottom: 26px;
}
.neon-card-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(161, 0, 255, 0.25));
    border: 1px solid rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.35);
    margin-bottom: 12px;
}
.neon-card-logo-badge img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.neon-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--ef-white);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.neon-card-title span {
    background: linear-gradient(90deg, var(--ef-neon-cyan), #38BDF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.neon-card-subtitle {
    font-size: 14px;
    color: var(--ef-text-muted);
    font-weight: 400;
    line-height: 1.4;
}

/* Section Dividers inside Registration Form */
.form-section-title {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--ef-neon-cyan);
    margin-top: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.3), transparent);
}

/* ==========================================================================
   INPUTS & FORM CONTROLS
   ========================================================================== */
.neon-form-group {
    margin-bottom: 16px;
    position: relative;
}
.neon-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #E2E8F0;
    margin-bottom: 6px;
}
.neon-label .req {
    color: #FF4976;
    margin-left: 2px;
}
.neon-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.neon-input-icon {
    position: absolute;
    left: 14px;
    color: #64748B;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.25s ease;
    z-index: 3;
}
.neon-input, .neon-select {
    width: 100%;
    background-color: var(--ef-input-bg) !important;
    border: 1px solid rgba(0, 229, 255, 0.25) !important;
    border-radius: 12px !important;
    color: var(--ef-white) !important;
    font-size: 14px;
    padding: 12px 14px 12px 42px !important;
    outline: none;
    transition: all 0.25s ease;
}
.neon-input::placeholder {
    color: #64748B;
    font-size: 13.5px;
}
.neon-input:focus, .neon-select:focus {
    border-color: var(--ef-neon-cyan) !important;
    background-color: rgba(5, 13, 40, 0.9) !important;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.35) !important;
}
.neon-input:focus + .neon-input-icon,
.neon-input-wrap:focus-within .neon-input-icon {
    color: var(--ef-neon-cyan);
}
.neon-toggle-pwd {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: color 0.2s ease;
    z-index: 4;
}
.neon-toggle-pwd:hover {
    color: var(--ef-neon-cyan);
}

/* Country Code Prefix */
.neon-country-prefix {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: var(--ef-neon-cyan);
    font-weight: 700;
    font-size: 13px;
    padding: 12px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.neon-input-with-prefix {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    padding-left: 14px !important;
}

/* Password Strength Indicator */
.pwd-strength-container {
    margin-top: 6px;
}
.pwd-strength-bar {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    position: relative;
}
.pwd-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s ease, background 0.3s ease;
}
.pwd-strength-text {
    font-size: 11px;
    margin-top: 4px;
    color: var(--ef-text-muted);
    font-weight: 500;
}

/* Checkbox & Terms */
.neon-check-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #CBD5E1;
    margin-bottom: 18px;
    cursor: pointer;
}
.neon-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--ef-neon-cyan);
    margin-top: 2px;
    cursor: pointer;
}
.neon-check-wrap a {
    color: var(--ef-neon-cyan);
    text-decoration: none;
    font-weight: 600;
}
.neon-check-wrap a:hover {
    text-decoration: underline;
}

/* Main CTA Button with Cyan-Purple Gradient */
.neon-cta-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--ef-neon-cyan) 0%, var(--ef-electric-blue) 50%, var(--ef-neon-purple) 100%);
    background-size: 200% 200%;
    color: #FFFFFF !important;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 13px 20px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 22px rgba(0, 229, 255, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.35s ease;
}
.neon-cta-btn:hover {
    background-position: 100% 100%;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.65), 0 0 25px rgba(161, 0, 255, 0.4);
}
.neon-cta-btn:active {
    transform: translateY(0);
}
.neon-cta-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Bottom Links */
.neon-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #94A3B8;
}
.neon-footer-link a {
    color: var(--ef-neon-cyan);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: all 0.2s ease;
}
.neon-footer-link a:hover {
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
    text-decoration: underline;
}

/* ==========================================================================
   PART 6: OTP VERIFICATION BOXES
   ========================================================================== */
.otp-inputs-grid {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0 20px 0;
}
.otp-digit-box {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    font-family: 'Outfit', monospace;
    background: rgba(5, 13, 40, 0.85);
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: 12px;
    color: var(--ef-neon-cyan);
    outline: none;
    transition: all 0.25s ease;
}
.otp-digit-box:focus {
    border-color: var(--ef-neon-cyan);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
}
.otp-email-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    color: var(--ef-neon-cyan);
    margin-bottom: 12px;
}
.otp-resend-countdown {
    font-size: 13px;
    color: var(--ef-text-muted);
    text-align: center;
    margin-top: 14px;
}
.otp-resend-btn {
    background: transparent;
    border: none;
    color: var(--ef-neon-cyan);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.otp-resend-btn:disabled {
    color: #64748B;
    cursor: not-allowed;
    text-decoration: none;
}

/* ==========================================================================
   PART 2 / BOTTOM FEATURE BAR
   ========================================================================== */
.neon-feature-bar {
    background: rgba(5, 13, 40, 0.92);
    border-top: 1px solid rgba(0, 229, 255, 0.15);
    padding: 16px 0;
    margin-top: auto;
}
.neon-feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #CBD5E1;
}
.neon-feature-icon {
    font-size: 16px;
    background: linear-gradient(135deg, var(--ef-neon-cyan), var(--ef-neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Utility Classes */
.text-cyan { color: var(--ef-neon-cyan) !important; }
.text-purple { color: var(--ef-neon-purple) !important; }
.text-slate { color: #94A3B8 !important; }
.hover-cyan:hover { color: var(--ef-neon-cyan) !important; text-shadow: 0 0 8px rgba(0, 229, 255, 0.6); }
.feat-icon-glow { font-size: 18px; filter: drop-shadow(0 0 8px currentColor); }
.feat-label { font-size: 13.5px; font-weight: 600; color: #E2E8F0; }

/* Alerts */
.neon-alert {
    background: rgba(7, 26, 66, 0.9) !important;
    border: 1px solid rgba(0, 229, 255, 0.4) !important;
    color: #FFFFFF !important;
    border-radius: 14px !important;
    backdrop-filter: blur(10px);
}
.neon-alert.alert-danger {
    border-color: rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}
.neon-alert.alert-success {
    border-color: rgba(34, 197, 94, 0.6) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

/* ==========================================================================
   RESPONSIVE DESIGN (PART 10)
   ========================================================================== */
@media (max-width: 991.98px) {
    .neon-auth-card {
        padding: 28px 24px;
        margin-top: 20px;
    }
    .neon-hero-container {
        padding: 10px 0;
    }
    .neon-hero-artwork-wrap {
        max-width: 360px;
    }
}

@media (max-width: 575.98px) {
    .neon-auth-card {
        padding: 24px 18px;
        border-radius: 18px;
    }
    .neon-card-title {
        font-size: 24px;
    }
    .otp-digit-box {
        width: 42px;
        height: 50px;
        font-size: 20px;
        gap: 6px;
    }
    .neon-hero-artwork-wrap {
        max-width: 280px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .neon-hero-artwork-wrap {
        animation: none !important;
    }
    .neon-auth-card::before {
        animation: none !important;
    }
    .neon-cta-btn {
        transition: none !important;
    }
}
