/* Reset + Body Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background: #0f0f0f;
    overflow: hidden;
    position: relative;
}

/* Animated Background Gradient Particles */
.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    height: 200%;
    width: 200%;
    background: radial-gradient(circle, rgba(0,255,255,0.15) 0%, transparent 70%) 0 0,
                radial-gradient(circle, rgba(255,0,255,0.15) 0%, transparent 70%) 50% 50%,
                radial-gradient(circle, rgba(0,255,127,0.1) 0%, transparent 70%) 100% 100%;
    background-size: 400px 400px;
    background-repeat: repeat;
    animation: moveBg 40s linear infinite;
    z-index: -1;
}

@keyframes moveBg {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100px, -100px); }
}

/* Centered Login Box */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 350px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    text-align: center;
    animation: fadeIn 1s ease;
    position: relative;
}

/* Neon Border Animation */
.login-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, #00fff0, #a933ff, #00ffc3, #001eff);
    background-size: 400% 400%;
    animation: neonGlow 15s ease infinite;
    z-index: -1;
    filter: blur(8px);
}

@keyframes neonGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo img {
    width: 80px;
    filter: drop-shadow(0 0 10px #00ffff);
    margin-bottom: 20px;
}

h2 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 24px;
}

form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 10px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: box-shadow 0.3s;
}
form input:focus {
    box-shadow: 0 0 10px #00ffe7;
    background: rgba(255, 255, 255, 0.15);
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(90deg, #00ffe0, #a933ff);
    color: #000;
    font-weight: bold;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}
button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.alert {
    background: rgba(255, 0, 0, 0.2);
    color: #ff7f7f;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.register-text {
    margin-top: 20px;
    font-size: 14px;
    color: #ccc;
}
.register-text a {
    color: #00ffe0;
    text-decoration: none;
    font-weight: bold;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
