html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    background-color: #0b1120; /* Deep blue fallback */
    /* THE REAL BACKGROUND */
    /* No blending, no gradients. Just the pure source image. */
    background-image: url('../images/nexus-bg.jpg');
    /* POSITIONING */
    background-size: cover; /* Stretch to fill screen */
    background-position: center; /* Center the design */
    background-attachment: fixed; /* Lock it in place */
    background-repeat: no-repeat;
    color: #e0e0e0;
    margin-bottom: 60px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* GLASSMORPHISM PANELS */
.card, .glass-panel {
    /* Lower opacity (0.6) so the waves show through better */
    background-color: rgba(11, 17, 32, 0.6) !important;
    /* Strong blur to keep text readable */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Crisp border */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); /* Soft shadow */
    color: #fff;
}

/* Fix for input boxes inside glass panels so they aren't stark white */
.form-control {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

    .form-control:focus {
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border-color: #4db5ff;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

    /* Input placeholders need to be readable */
    .form-control::placeholder {
        color: #aaa;
    }

/* Links in the navbar */
.nav-link {
    color: #e0e0e0 !important;
}

    .nav-link:hover {
        color: #fff !important;
        text-shadow: 0 0 5px rgba(255,255,255,0.5);
    }

/* Footer styling */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    /* Add this line to center the text */
    text-align: center;
    line-height: 60px;
    background-color: rgba(11, 17, 32, 0.9);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Update the Navbar to fit the logo naturally */
.navbar {
    min-height: 80px; /* Force the bar to be taller */
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: rgba(11, 17, 32, 0.85) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ensure the brand container doesn't restrict the image */
.navbar-brand {
    padding: 0;
    margin: 0;
    height: auto;
    display: flex;
    align-items: center;
}

/* --- FIX: STOP CHROME/EDGE FROM TURNING INPUTS WHITE --- */
/* This uses a 'box-shadow' trick to paint over the white background with our dark color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #1a2236 inset !important; /* Dark Blue match */
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Ensure placeholder text is readable */
::placeholder {
    color: #a0a0a0 !important;
    opacity: 1;
}