@font-face {
    font-family: 'Yautja-Font';
    src: url('/static/fonts/yautja.woff') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Yautja-Font', monospace;
    font-weight: bold;
    text-shadow: 0 0 3px currentColor;
    cursor: none;
}

body {
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
    cursor: none;
}

/* CRT scanline overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 100;
}

/* Animated grid background */
body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(139, 0, 0, 0.3) 2px, transparent 2px),
        linear-gradient(90deg, rgba(139, 0, 0, 0.3) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Scanline */
.scan-line {
    position: fixed;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    box-shadow: 
        0 0 10px rgba(255, 0, 0, 0.8),
        0 0 20px rgba(255, 0, 0, 0.6),
        0 0 30px rgba(255, 0, 0, 0.4);
    animation: scan 6s linear infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes scan {
    0% { top: -10px; opacity: 0; }
    5% { opacity: 1; }
    95% { opacity: 1; }
    100% { top: calc(100vh + 10px); opacity: 0; }
}

.login-container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 100%;
}

/* Login Terminal */
.login-terminal {
    background: rgba(10, 10, 10, 0.1);
    border: 2px solid rgba(139, 0, 0, 0.5);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.3);
    animation: borderGlow 3s infinite;
    position: relative;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

@keyframes borderGlow {
    0%, 100% { 
        border-color: rgba(139, 0, 0, 0.5);
        box-shadow: 0 0 40px rgba(255, 0, 0, 0.3);
    }
    50% { 
        border-color: rgba(255, 0, 0, 0.7);
        box-shadow: 0 0 60px rgba(255, 0, 0, 0.6);
    }
}

/* Corner brackets */
.login-terminal::before,
.login-terminal::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.login-terminal::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.login-terminal::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* Header */
.terminal-header {
    text-align: center;
    margin-bottom: 40px;
}

.terminal-title {
    font-size: 3.2em;
    color: #ff0000;
    text-shadow: 
        0 0 30px rgba(255, 0, 0, 1),
        0 0 60px rgba(255, 0, 0, 1),
        0 0 90px rgba(255, 0, 0, 1),
        0 0 120px rgba(255, 0, 0, 0.9),
        0 0 150px rgba(139, 0, 0, 0.7);
    letter-spacing: 5px;
    margin-bottom: 10px;
    animation: textPulse 2s infinite;
    transition: text-shadow 0.1s ease-out;
}

@keyframes textPulse {
    0%, 100% { 
        text-shadow: 
            0 0 30px rgba(255, 0, 0, 1),
            0 0 60px rgba(255, 0, 0, 1),
            0 0 90px rgba(255, 0, 0, 1),
            0 0 120px rgba(255, 0, 0, 0.9),
            0 0 150px rgba(139, 0, 0, 0.7);
    }
    50% { 
        text-shadow: 
            0 0 40px rgba(255, 0, 0, 1),
            0 0 70px rgba(255, 0, 0, 1),
            0 0 100px rgba(255, 0, 0, 1),
            0 0 130px rgba(255, 0, 0, 1),
            0 0 160px rgba(139, 0, 0, 0.9);
    }
}

.terminal-subtitle {
    font-size: 1.5em;
    color: #00ff00;
    text-shadow: 
        0 0 25px rgba(0, 255, 0, 1),
        0 0 50px rgba(0, 255, 0, 1),
        0 0 75px rgba(0, 255, 0, 1),
        0 0 100px rgba(0, 255, 0, 0.8);
    letter-spacing: 2px;
    transition: text-shadow 0.1s ease-out;
}

/* Input Section */
.input-section {
    margin-bottom: 30px;
}

.input-label {
    display: block;
    color: #00ff00;
    font-size: 1.5em;
    margin-bottom: 10px;
    text-shadow: 
        0 0 25px rgba(0, 255, 0, 1),
        0 0 50px rgba(0, 255, 0, 1),
        0 0 75px rgba(0, 255, 0, 1),
        0 0 100px rgba(0, 255, 0, 0.8);
    letter-spacing: 2px;
    transition: text-shadow 0.1s ease-out;
}

.terminal-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.7em;
    text-shadow: 
        0 0 20px rgba(0, 255, 0, 1),
        0 0 40px rgba(0, 255, 0, 1),
        0 0 60px rgba(0, 255, 0, 1),
        0 0 80px rgba(0, 255, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transition: box-shadow 0.1s ease-out;
}

.terminal-input:focus {
    outline: none;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6);
}

.terminal-input::placeholder {
    color: rgba(0, 255, 0, 0.3);
    text-shadow: none;
}

/* Access Button - SOLID with hover grow */
.access-button {
    width: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.8) 0%, rgba(255, 0, 0, 0.9) 100%);
    border: 3px solid #ff0000;
    color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    font-size: 2em;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    letter-spacing: 5px;
    transition: all 0.3s ease-out;
    margin: 30px 0;
    text-shadow: 
        0 0 25px rgba(255, 255, 255, 1),
        0 0 50px rgba(255, 255, 255, 1),
        0 0 75px rgba(255, 255, 255, 1),
        0 0 100px rgba(255, 255, 255, 0.8);
}

.access-button:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.9) 0%, rgba(255, 68, 68, 0.95) 100%);
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.8);
}

.access-button:active {
    transform: scale(0.98);
}

/* Status Display */
.status-display {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(0, 255, 0, 0.5);
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    min-height: 60px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    transition: box-shadow 0.1s ease-out;
}

.status-text {
    font-size: 1.7em;
    color: #00ff00;
    text-shadow: 
        0 0 25px rgba(0, 255, 0, 1),
        0 0 50px rgba(0, 255, 0, 1),
        0 0 75px rgba(0, 255, 0, 1),
        0 0 100px rgba(0, 255, 0, 0.8);
    letter-spacing: 3px;
    transition: text-shadow 0.1s ease-out;
}

.status-text.error {
    color: #ff0000;
    text-shadow: 
        0 0 25px rgba(255, 0, 0, 1),
        0 0 50px rgba(255, 0, 0, 1),
        0 0 75px rgba(255, 0, 0, 1),
        0 0 100px rgba(255, 0, 0, 0.8);
}

.status-text.success {
    color: #00ff00;
    text-shadow: 
        0 0 30px rgba(0, 255, 0, 1),
        0 0 60px rgba(0, 255, 0, 1),
        0 0 90px rgba(0, 255, 0, 1),
        0 0 120px rgba(0, 255, 0, 1);
}

/* Bottom Info Bar */
.info-bar {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
    margin-top: 20px;
}

.info-item {
    color: #666;
    font-size: 1.3em;
    letter-spacing: 1px;
    transition: text-shadow 0.1s ease-out;
}

.info-value {
    color: #ff4444;
    text-shadow: 
        0 0 20px rgba(255, 68, 68, 1),
        0 0 40px rgba(255, 68, 68, 1),
        0 0 60px rgba(255, 68, 68, 1),
        0 0 80px rgba(255, 68, 68, 0.8);
}

/* Flash effect for access granted/denied */
.flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.flash-overlay.success {
    background: rgba(0, 255, 0, 0.3);
}

.flash-overlay.error {
    background: rgba(255, 0, 0, 0.3);
}

.flash-overlay.active {
    opacity: 1;
}

/* Loading animation */
.loading {
    display: inline-block;
    animation: loading 1s infinite;
}

@keyframes loading {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Predator Shoulder Cannon - Three Independent Laser Lines forming triangle */
.laser-line {
    position: absolute;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom,
        rgba(255, 0, 0, 0),
        rgba(255, 0, 0, 1),
        rgba(255, 0, 0, 1),
        rgba(255, 0, 0, 0)
    );
    pointer-events: none;
    box-shadow: 
        0 0 8px rgba(255, 0, 0, 1),
        0 0 16px rgba(255, 0, 0, 0.8),
        0 0 24px rgba(255, 0, 0, 0.6);
    transition: all 0.3s ease-out;
}

.laser-line-1 {
    transform-origin: center center;
}

.laser-line-2 {
    transform-origin: center center;
}

.laser-line-3 {
    transform-origin: center center;
}

@keyframes spinLaser {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .terminal-title {
        font-size: 2em;
    }
    
    .terminal-input {
        font-size: 1.2em;
    }
    
    .access-button {
        font-size: 1.4em;
    }
}