* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&display=swap');

body {
    background: #0a0a16;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* CHANGE 1: Allow vertical scrolling while hiding horizontal overflow */
    overflow-x: hidden;
    overflow-y: auto;
    color: #e0e0ff;
    /* CHANGE 2: Add padding so content doesn't touch screen edges on small devices */
    padding: 20px 0;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.3;
}

.hologram-container {
    position: relative;
    width: 420px;
    perspective: 1000px;
}

.hologram-card {
    background: rgba(10, 15, 35, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow:
        0 0 0 1px rgba(0, 200, 255, 0.3),
        0 0 30px rgba(0, 200, 255, 0.2),
        inset 0 0 20px rgba(0, 200, 255, 0.1);
    transform-style: preserve-3d;
    animation: hologram-float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes hologram-float {

    0%,
    100% {
        transform: translateY(0) rotateX(0);
    }

    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

.hologram-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 200, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: hologram-scan 3s linear infinite;
}

@keyframes hologram-scan {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.nexus-logo {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}
.mt-4{
    margin-top: 4px;
}

.logo-icon {
    /* width: 70px; */
    /* height: 70px; */
    margin: 0 auto 15px;
    /* background: linear-gradient(135deg, #00c8ff, #0077ff); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #0a0a16;
    /* box-shadow: 0 0 20px #00c8ff; */
    /* animation: logo-pulse 2s ease-in-out infinite alternate; */
}

@keyframes logo-pulse {
    0% {
        box-shadow: 0 0 20px #00c8ff;
    }

    100% {
        box-shadow: 0 0 30px #00c8ff, 0 0 40px #0077ff;
    }
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(90deg, #00c8ff, #a200ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.login-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #a0a0ff;
}

.biometric-option {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.biometric-btn {
    background: rgba(0, 120, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 50px;
    padding: 12px 25px;
    color: #00c8ff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.biometric-btn:hover {
    background: rgba(0, 120, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #6060a0;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.5), transparent);
}

.divider span {
    padding: 0 15px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #a0a0ff;
    letter-spacing: 1px;
}

.input-field {
    position: relative;
}

.input-field input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(5, 10, 25, 0.7);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 10px;
    color: #e0e0ff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field input:focus {
    outline: none;
    border-color: #00c8ff;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00c8ff;
    font-size: 18px;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6060a0;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #00c8ff;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cyber-checkbox {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(0, 200, 255, 0.5);
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-checkbox.checked::after {
    content: '✓';
    color: #00c8ff;
    font-size: 14px;
    font-weight: bold;
}

.forgot-password {
    color: #00c8ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    text-shadow: 0 0 10px #00c8ff;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00c8ff, #0077ff);
    border: none;
    border-radius: 10px;
    color: #0a0a16;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.7);
    transform: translateY(-2px);
}

.signup-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #8080c0;
}

.signup-link a {
    color: #00c8ff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.signup-link a:hover {
    text-shadow: 0 0 10px #00c8ff;
}

.hologram-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

@keyframes holo-line {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

.holo-line {
    position: absolute;
    background: rgba(0, 200, 255, 0.1);
    animation: holo-line 8s linear infinite;
}



.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
}

.particle {
    position: absolute;
    background: rgba(0, 200, 255, 0.5);
    border-radius: 50%;
    animation: particle-float 15s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

.neon-text {
    text-shadow: 0 0 5px currentColor;
}

@media (max-width: 480px) {
    .hologram-container {
        width: 90%;
    }

    .hologram-card {
        padding: 30px 25px;
    }
}


.text-success {
    color: #28a745 !important
}

.text-center {
    text-align: center !important
}

@media (max-width: 480px) {
    body {
        /* Ensure layout starts top-aligned on small mobile screens */
        align-items: flex-start;
        padding: 40px 0;
    }

    .hologram-container {
        width: 90%;
    }

    .hologram-card {
        padding: 30px 25px;
    }
}
      .styled-select {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background: rgba(5, 10, 25, 0.7) url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2300c8ff" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>') no-repeat right 1.2rem center;
            background-size: 12px;
            padding: 15px 59px 15px 50px;
            border: 1px solid rgba(0, 200, 255, 0.2);
            border-radius: 10px;
            color: #e0e0ff;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .styled-select:focus {
            outline: none;
            border-color: #00c8ff;
            box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
        }