:root {
    --cyber-dark: #000000;
    --cyber-panel: #212832;
    --cyber-teal: #00ba94;
    --cyber-blue: #0061f2;
    --cyber-text: #e0e0e0;
    --cyber-input-bg: rgba(0, 0, 0, 0.2);
}

body {
    background-color: var(--cyber-dark);
    color: var(--cyber-text);
    font-family: 'Metropolis', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Particles */
.cyber-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 186, 148, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    animation: float 20s infinite linear;
}

.particle:nth-child(1) {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: 10%;
    right: -50px;
    background: radial-gradient(circle, rgba(0, 97, 242, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    animation-duration: 30s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(30px, 50px) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Glass Navbar */
.navbar-cyber {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Logo Styling */
.cyberoak-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-icon-box {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-teal));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    color: white;
    box-shadow: 0 0 15px rgba(0, 186, 148, 0.3);
}

.brand-text {
    font-weight: 700;
    color: white;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

/* Global Form Overrides for Dark Mode */
.form-control {
    background-color: var(--cyber-input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-control:focus {
    background-color: rgba(0, 0, 0, 0.4);
    border-color: var(--cyber-blue);
    color: #fff;
    box-shadow: none;
}

.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

label {
    color: rgba(255, 255, 255, 0.8);
}

#layoutAuthentication {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset for fixed navbar */
}

.card-cyber-auth {
    background: rgba(33, 40, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

.card-header-cyber {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.alert-icon {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid;
    color: #fff;
}

.alert-danger {
    border-color: #e81500;
}

.alert-success {
    border-color: #00ac69;
}

.alert-warning {
    border-color: #f4a100;
}

.alert-heading {
    font-weight: 700;
}

.btn-cyber-gradient {
    background: linear-gradient(135deg, #0061f2, #00ba94);
    border: none;
    color: white;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-cyber-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 186, 148, 0.4);
    color: white;
}


.btn-cyber-primary {
    background: var(--cyber-blue);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cyber-primary:hover {
    background: var(--cyber-teal);
    color: white;
    transform: translateY(-2px);
}
