/* static/css/login.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0f0a 0%, #0a1f0a 100%);
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Disabled = Matrix rain effect for login page
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 0, 0.03) 0px,
        rgba(0, 255, 0, 0.03) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    animation: scan 8s linear infinite;
}
*/

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: rgba(0, 15, 0, 0.9);
    border: 2px solid #0f0;
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    }
    to {
        box-shadow: 0 0 40px rgba(0, 255, 0, 0.6);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #0f0;
    font-size: 2em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75);
    }
    25% {
        text-shadow: -0.05em 0 0 rgba(255, 0, 0, 0.75), 0.025em 0.05em 0 rgba(0, 255, 0, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75);
    }
    75% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75);
    }
}

.subtitle {
    color: #0f0;
    font-size: 0.8em;
    opacity: 0.8;
    letter-spacing: 2px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    color: #0f0;
    margin-bottom: 10px;
    font-size: 0.9em;
    letter-spacing: 1px;
}

.code-input {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.code-digit {
    width: 60px;
    height: 70px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #0f0;
    border-radius: 8px;
    color: #0f0;
    font-size: 2em;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
}

.code-digit:focus {
    outline: none;
    border-color: #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    transform: scale(1.05);
}

.code-digit::-webkit-inner-spin-button,
.code-digit::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.code-digit[type=number] {
    -moz-appearance: textfield;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: #0f0;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.login-button:hover {
    background: #0a0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.error-message {
    background: rgba(255, 0, 0, 0.2);
    border-left: 3px solid #f00;
    color: #f66;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9em;
}

.lockout-message {
    background: rgba(255, 255, 0, 0.1);
    border-left: 3px solid #ff0;
    color: #ff0;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9em;
}

.info-text {
    text-align: center;
    margin-top: 20px;
    color: #0f0;
    font-size: 0.8em;
    opacity: 0.7;
}

.security-badge {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 0, 0.3);
    color: #0f0;
    font-size: 0.7em;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .code-digit {
        width: 45px;
        height: 55px;
        font-size: 1.5em;
    }

    .login-header h1 {
        font-size: 1.5em;
    }
}