:root {
    --nexus-bg: #0f172a;
    --nexus-card: rgba(30, 41, 59, 0.7);
    --nexus-primary: #0d6efd;
    /* Default, overridden by JS */
    --nexus-accent: #38bdf8;
    --nexus-text: #e2e8f0;
    --nexus-border: rgba(148, 163, 184, 0.1);
}

body {
    background-color: var(--nexus-bg);
    color: var(--nexus-text);
    font-family: 'Outfit', 'Inter', sans-serif;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(13, 110, 253, 0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.15) 0%, transparent 20%);
}

.nexus-glass {
    background: var(--nexus-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--nexus-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

.modal-content {
    background-color: #1e293b !important;
    /* Lighter slate blue */
    border: 1px solid var(--nexus-accent) !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.form-control {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--nexus-border);
    color: #fff !important;
}

.form-control:focus {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-color: var(--nexus-accent);
    box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.25);
    color: #fff !important;
}

/* Fix for Chrome Autocomplete background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0f172a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.btn-nexus {
    background: linear-gradient(135deg, var(--nexus-primary), var(--nexus-accent));
    border: none;
    color: white !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-nexus:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    color: white !important;
}

.nexus-logo {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
}

.access-portal-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}