/* BrainTerminal Login Page - Cyberpunk Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: #0a0a0a;
    color: #00e5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Animated background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stars {
    background: #000 url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAE0lEQVQIW2NkYGD4z8DAwMgABgAOvgH/uUMCyAAAAABJRU5ErkJggg==') repeat;
    z-index: 0;
}

.twinkling {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAE0lEQVQIW2NkYGD4z8DAwMgABgAOvgH/uUMCyAAAAABJRU5ErkJggg==') repeat;
    animation: move-twink-back 200s linear infinite;
    z-index: 0;
    opacity: 0.3;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    z-index: 10;
    position: relative;
}

.login-box {
    background: rgba(13, 13, 26, 0.95);
    border: 2px solid #00e5ff;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 
        0 0 50px rgba(0, 229, 255, 0.3),
        inset 0 0 50px rgba(0, 229, 255, 0.05);
    animation: fadeIn 0.6s ease-out;
    backdrop-filter: blur(10px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 45px;
}

.brain-icon {
    font-size: 72px;
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
    }
    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.8));
    }
}

h1 {
    font-size: 32px;
    margin: 20px 0 8px 0;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.8);
    letter-spacing: 4px;
    font-weight: 700;
}

.version {
    color: #666;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.input-group {
    margin-bottom: 28px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #00e5ff;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.5);
    border-radius: 6px;
    color: #00e5ff;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input::placeholder {
    color: rgba(0, 229, 255, 0.3);
}

input:focus {
    outline: none;
    border-color: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    background: rgba(0, 229, 255, 0.12);
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00e5ff 0%, #00b8d4 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    font-family: inherit;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.login-button:hover {
    background: linear-gradient(135deg, #00ccdd 0%, #0099aa 100%);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
    transform: translateY(-2px);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.error-msg {
    margin-top: 20px;
    padding: 14px;
    background: rgba(255, 0, 60, 0.12);
    border: 1px solid rgba(255, 0, 60, 0.5);
    border-radius: 6px;
    color: #ff003c;
    font-size: 12px;
    text-align: center;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.footer {
    margin-top: 35px;
    text-align: center;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    animation: blink 1.5s infinite;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.4);
    }
}

.status-text {
    display: inline-block;
}

/* Responsive */
@media (max-width: 500px) {
    .login-box {
        padding: 40px 25px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .brain-icon {
        font-size: 60px;
    }
}
