/* ================================================================
   STC ALLCONTROL — LOGIN SCREEN
   ================================================================ */

.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0f1a;
    background-image: url('../Fondoweb.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: opacity 0.4s ease;
}

.login-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
}

.login-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 40px 20px;
}

.login-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 8px;
    position: absolute;
    top: 5%;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 0 40px rgba(0, 200, 255, 0.9), 0 0 80px rgba(0, 150, 255, 0.5), 0 4px 6px rgba(0,0,0,0.8);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 30px rgba(0, 200, 255, 0.7), 0 0 60px rgba(0, 150, 255, 0.4), 0 4px 6px rgba(0,0,0,0.8); }
    100% { text-shadow: 0 0 50px rgba(0, 200, 255, 1), 0 0 100px rgba(0, 150, 255, 0.7), 0 4px 6px rgba(0,0,0,0.8); }
}

.login-subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: absolute;
    top: calc(5% + 70px);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 2px 4px rgba(0,0,0,0.7);
}

.login-fields {
    position: absolute;
    bottom: 15%;
    width: 320px;
    max-width: 85vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: loginSlideIn 0.6s ease;
}

.login-form-group {
    width: 100%;
    margin-bottom: 14px;
}

.login-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 20, 50, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.15), inset 0 0 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), inset 0 0 10px rgba(0, 100, 200, 0.1);
    background: rgba(0, 20, 50, 0.75);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    border: 1px solid rgba(0, 200, 255, 0.4);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.4), 0 0 15px rgba(0, 200, 255, 0.2);
}

.login-btn:hover {
    background: linear-gradient(135deg, #00d4ff, #0096c7);
    box-shadow: 0 6px 30px rgba(0, 212, 255, 0.6), 0 0 25px rgba(0, 200, 255, 0.3);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-error {
    width: 100%;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fca5a5;
    font-size: 0.78rem;
    text-align: center;
    margin-bottom: 12px;
    display: none;
}

.login-error.visible {
    display: block;
    animation: loginShake 0.4s ease;
}

@keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.login-version {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 700;
    margin-top: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

@keyframes loginSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
