body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-image: url('/static/NovaNET_design/empire.jpg');
    background-size: cover;
    background-position: center;
}

/* ===== LOGIN CONTAINER ===== */
.login-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* For Safari */
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(5px)) {
    .login-container {
        background: rgba(0, 0, 0, 0.60); /* Darker background as fallback */
    }
}

/* ===== FORM STYLES ===== */
.login-form {
    width: 300px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.login-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.login-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-form input[type="submit"]:hover {
    background: linear-gradient(45deg, #0056b3, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Simplified Animation Styles */
#circuit-animation-container {
    position: absolute;
    top: 60%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 20;
    overflow: hidden;
    transition: top 0.3s ease; /* Smooth transition when position adjusts */
}

#circuit-animation {
    overflow: hidden;
}

/* Enhanced smooth trail styling */
#particle-trail circle {
    filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.6));
    transition: r 0.05s linear, opacity 0.05s linear;
}

/* Continuous line trail styling */
#particle-trail polyline {
    filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.7));
    transition: stroke-width 0.1s ease;
}

/* Improved particle styling */
#particle {
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
}

/* Form activation after animation */
.login-form.circuit-active {
    border: 1px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.12), 0 0 20px rgba(0, 240, 255, 0.2);
    transition: all 0.8s ease;
}

/* ===== LOGO ===== */
.logo img {
    height: 250px;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== PASSWORD TOGGLE ===== */
.toggle-password {
    border-left: none;
    background-color: transparent;
    color: #6c757d;
}

.toggle-password:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
}

.toggle-password:focus {
    box-shadow: none;
}

/* ===== LOGIN BUTTON ===== */
.login-button {
    width: 100%;
    height: 50px;
    border: none;
    background: linear-gradient(135deg, #1a5c96 0%, #0a2e4a 100%);
    color: white;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(26, 92, 150, 0.3);
    margin-bottom: 20px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 92, 150, 0.4);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26, 92, 150, 0.3);
}

/* ===== COMPANY INFO ===== */
.company-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    color: #6c757d;
    font-size: 13px;
    width: 100%;
    text-align: center;
}

/* ===== BOTTOM BAR ===== */
.bottom-bar {
    position: fixed;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    width: 100%;
    z-index: 100;
}

/* Secure connection badge */
.secure-connection {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(25, 135, 84, 0.2);
    padding: 5px 10px;
    border-radius: 20px;
}

.secure-connection i {
    color: #28a745;
}

/* Version info */
#version-info {
    position: static;
    bottom: auto;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .login-form {
        width: 90%;
    }

    .logo img {
        height: 200px;
    }
}
