/* ==================== LOGIN SCREEN ==================== */
.login-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #0d1525 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    animation: bgPulse 8s ease-in-out infinite;
}

.login-overlay.hidden { display: none; }

.login-container {
    background: rgba(15, 20, 35, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 80px rgba(0, 212, 170, 0.15), 0 0 100px rgba(0, 168, 255, 0.1);
}

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

.login-logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: logoFloat 3s ease-in-out infinite;
    overflow: hidden;
    border: 3px solid rgba(0, 212, 170, 0.4);
    box-shadow: 0 8px 32px rgba(0, 212, 170, 0.3);
}

.login-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #7b68ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.login-epa-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--epa-blue-dark) 0%, var(--epa-blue) 100%);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    margin-top: 12px;
}

.login-form { margin-top: 32px; }

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.4); }

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
}

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

.login-error {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    margin-top: 16px;
    display: none;
    animation: shake 0.5s ease;
}

.login-error.show { display: block; }

.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}

@media (max-width: 480px) {
    .login-container { padding: 32px 24px; border-radius: 16px; }
    .login-title { font-size: 22px; }
    .login-logo { margin-bottom: 20px; }
    .login-logo-icon { width: 64px; height: 64px; border-radius: 16px; }
    .login-form { margin-top: 20px; }
}
