﻿ :root {
            --bg-dark: #03001e;
            --bg-card: rgba(10, 6, 32, 0.65);
            --neon-blue: #00f2fe;
            --neon-pink: #ec008c;
            --neon-purple: #7f00ff;
            --text-muted: #94a3b8;
        }

        body {
            background-color: var(--bg-dark);
            color: #ffffff;
            font-family: 'Poppins', sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            margin: 0;
            padding: 20px;
            overflow: initial;
        }

        /* Ambient Cosmic Plasma Fields */
        .nebula-1 {
            position: fixed;
            top: -20%;
            left: -10%;
            width: 60vw;
            height: 60vw;
            background: radial-gradient(circle, rgba(127, 0, 255, 0.4) 0%, rgba(0,0,0,0) 70%);
            filter: blur(140px);
            z-index: -2;
            animation: pulseNebula 12s infinite alternate ease-in-out;
        }

        .nebula-2 {
            position: fixed;
            bottom: -20%;
            right: -10%;
            width: 60vw;
            height: 60vw;
            background: radial-gradient(circle, rgba(236, 0, 140, 0.3) 0%, rgba(0,0,0,0) 70%);
            filter: blur(140px);
            z-index: -2;
            animation: pulseNebula 18s infinite alternate-reverse ease-in-out;
        }

        @keyframes pulseNebula {
            0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
            100% { transform: scale(1.2) translate(8%, 5%); opacity: 0.9; }
        }

        /* 3D Cyber Grid Perspective Floor */
        .cyber-grid {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
            background-size: 40px 40px;
            background-position: center;
            z-index: -3;
            transform: perspective(500px) rotateX(60deg) translateY(-30%);
            transform-origin: top center;
            animation: gridScroll 20s linear infinite;
        }

        @keyframes gridScroll {
            0% { background-position: 0 0; }
            100% { background-position: 0 100%; }
        }

        #particle-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            pointer-events: none;
        }

        /* Glassmorphic Cyber Card Container */
        .portal-wrapper {
            position: relative;
            z-index: 10;
            width: 100%;
            max-width: 440px;
        }

        .portal-card {
            background: var(--bg-card);
            border: 1px solid rgba(0, 242, 254, 0.15);
            border-radius: 24px;
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 
                        inset 0 0 20px rgba(255, 255, 255, 0.03);
            padding: 45px 35px;
            position: relative;
            transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
        }

        .portal-card:hover {
            border-color: rgba(0, 242, 254, 0.4);
            box-shadow: 0 0 50px rgba(0, 242, 254, 0.15), 
                        0 20px 60px rgba(0, 0, 0, 0.8);
            transform: translateY(-2px);
        }

        /* High-tech Branding */
        .brand-logo-container {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
            box-shadow: 0 0 25px rgba(236, 0, 140, 0.5);
            border-radius: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            position: relative;
        }

        .brand-logo-container::after {
            content: '';
            position: absolute;
            top: -2px; left: -2px; right: -2px; bottom: -2px;
            background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
            border-radius: 18px;
            z-index: -1;
            opacity: 0.6;
        }

        .brand-title {
            font-family: 'Orbitron', sans-serif;
            letter-spacing: 4px;
            font-weight: 700;
            background: linear-gradient(to right, #ffffff, #cbd5e1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .brand-subtitle {
            font-size: 0.65rem;
            color: var(--neon-blue);
            letter-spacing: 4px;
            font-weight: 700;
            text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
        }

        .portal-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 1.3rem;
            font-weight: 500;
            letter-spacing: 2px;
            margin-bottom: 30px;
            color: #ffffff;
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
        }

        /* Futuristic Inputs */
        .form-label {
            color: var(--text-muted);
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 8px;
        }

        .input-group {
            background: rgba(5, 2, 18, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            transition: all 0.3s ease;
        }

        .input-group:focus-within {
            border-color: var(--neon-blue);
            box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
            background: rgba(5, 2, 18, 0.8);
        }

        .form-control {
            background: transparent !important;
            border: none !important;
            color: #ffffff !important;
            padding: 14px 14px 14px 0px;
            font-size: 0.95rem;
        }

        .form-control::placeholder {
            color: rgba(255, 255, 255, 0.2);
        }

        .form-control:focus {
            box-shadow: none !important;
        }

        .input-group-text {
            background: transparent !important;
            border: none !important;
            color: var(--text-muted);
            padding-left: 18px;
            padding-right: 12px;
        }

        .input-group:focus-within .input-group-text,
        .input-group:focus-within .password-toggle-btn {
            color: var(--neon-blue) !important;
        }

        .password-toggle-btn {
            border: none !important;
            background: transparent !important;
            color: var(--text-muted) !important;
            padding-right: 18px;
        }

        /* Checkbox customization */
        .form-check-input {
            background-color: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
            cursor: pointer;
        }

        .form-check-input:checked {
            background-color: var(--neon-blue);
            border-color: var(--neon-blue);
            box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
        }

        .form-check-input:focus {
            box-shadow: none !important;
        }

        /* Glow Action Button */
        .btn-portal {
            background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
            border: none;
            color: white;
            padding: 15px;
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            font-size: 0.95rem;
            letter-spacing: 2px;
            border-radius: 14px;
            position: relative;
            z-index: 1;
            transition: all 0.4s ease;
        }

        .btn-portal::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
            border-radius: 14px;
            z-index: -1;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .btn-portal:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 25px rgba(236, 0, 140, 0.6);
            color: white;
        }

        .btn-portal:hover::before {
            opacity: 1;
        }

        .btn-portal:active {
            transform: translateY(0);
        }

        .text-neon-link { 
            color: var(--neon-blue);
            text-decoration: none;
            transition: all 0.2s ease;
            text-shadow: 0 0 8px rgba(0, 242, 254, 0);
        }
        
        .text-neon-link:hover { 
            color: #ffffff;
            text-shadow: 0 0 8px rgba(0, 242, 254, 0.8);
        }

        /* Footer Divider Options */
        .portal-footer {
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            margin-top: 25px;
            padding-top: 20px;
            text-align: center;
            font-size: 0.85rem;
            color: var(--text-muted);
        }