/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: black;
    overflow: hidden;
}

/* Hacker Matrix Background */
.hacker-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Glowing Login Box */
.login-container {
    background: rgba(0, 255, 0, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 0px 20px rgba(0, 255, 0, 0.3);
    width: 350px;
    text-align: center;
    color: lime;
    transition: 0.8s ease-in-out;
}

/* Input Fields */
.input-group {
    position: relative;
    margin: 20px 0;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(0, 255, 0, 0.3);
    background: rgba(0, 255, 0, 0.1);
    outline: none;
    color: lime;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
}

/* Hacker Effect for Label */
.input-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: rgba(0, 255, 0, 0.7);
    pointer-events: none;
    transition: 0.3s ease-in-out;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: 5px;
    left: 10px;
    font-size: 12px;
    color: #00ff00;
    text-shadow: 0 0 8px #00ff00;
}

/* Button Glowing Effect */
.btn {
    width: 100%;
    padding: 10px;
    border: none;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    color: black;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    background: linear-gradient(90deg, #00cc00, #00ff00);
    box-shadow: 0 0 15px #00ff00;
    transform: scale(1.05);
}

/* Glitch Effect on Incorrect Login */
.glitch {
    animation: glitch 0.4s ease-in-out infinite;
}

@keyframes glitch {
    0% { transform: translate(2px, -2px); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, 2px); }
    75% { transform: translate(-2px, -2px); }
    100% { transform: translate(0, 0); }
}

/* Welcome Message */
.welcome-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    text-align: center;
    color: lime;
    font-size: 2rem;
    opacity: 0;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.welcome-container span {
    color: #00ff00;
    font-weight: bold;
}

/* Show Welcome Animation */
.show-welcome {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
