/* ============================================================
   PREMIUM LOGIN EXPERIENCE (UX/UI REDESIGN)
   ============================================================ */

.login-screen {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--color-fondo-login, #003566) 50%, black) 0%, 
        var(--color-fondo-login, #003566) 50%, 
        color-mix(in srgb, var(--color-fondo-login, #003566) 70%, white) 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Elementos decorativos de fondo para profundidad */
.login-screen::before, .login-screen::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.1);
    filter: blur(80px);
    z-index: 0;
}

.login-screen::before { top: -100px; left: -100px; }
.login-screen::after { bottom: -100px; right: -100px; }

.login-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 3.5rem 2.8rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    z-index: 10;
    animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-brand-logo {
    width: 85px;
    height: 85px;
    background: white;
    padding: 14px;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    display: inline-block;
}

.login-title-premium {
    font-family: 'Outfit', sans-serif !important;
    color: white !important;
    font-weight: 800 !important;
    font-size: 2.4rem !important;
    letter-spacing: -1px !important;
    margin-bottom: 0.1rem !important;
    outline: none !important; /* Elimina el cuadro de enfoque inicial */
}

.login-title-premium:focus {
    outline: none !important;
    box-shadow: none !important;
}

.login-subtitle-premium {
    color: rgba(255,255,255,0.6) !important;
    font-weight: 400 !important;
    font-size: 0.95rem !important;
    margin-bottom: 3rem !important;
    display: block;
}

.login-input-group {
    position: relative;
    margin-bottom: 1.8rem;
}

.login-input-group label {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    margin-left: 4px;
}

.login-field-wrapper {
    position: relative;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.login-field-wrapper:focus-within {
    background: rgba(255,255,255,0.12);
    border-color: var(--color-boton-primario, #00b4d8);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-boton-primario, #00b4d8) 25%, transparent);
    transform: translateY(-2px);
}

.login-field-wrapper i.field-icon {
    position: absolute;
    left: 18px;
    color: rgba(255,255,255,0.4);
    font-size: 1.1rem;
    transition: 0.3s;
}

.login-field-wrapper:focus-within i.field-icon {
    color: var(--color-boton-primario, #00b4d8);
}

.login-control-premium {
    background: transparent !important;
    border: none !important;
    color: white !important;
    padding: 16px 18px 16px 52px;
    font-size: 1rem;
    width: 100%;
    outline: none !important;
}

.login-control-premium::placeholder {
    color: rgba(255,255,255,0.25);
}

.btn-toggle-pass {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: 0.2s;
}

.btn-toggle-pass:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

.btn-login-premium {
    width: 100%;
    padding: 18px;
    background: var(--color-boton-primario, #00b4d8);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px color-mix(in srgb, var(--color-boton-primario, #00b4d8) 30%, transparent);
    cursor: pointer;
}

.btn-login-premium:hover:not(:disabled) {
    background: color-mix(in srgb, var(--color-boton-primario, #00b4d8) 85%, white);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px color-mix(in srgb, var(--color-boton-primario, #00b4d8) 45%, transparent);
}

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

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

.error-toast-premium {
    background: rgba(231, 76, 60, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #ffb4ac;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

@media (max-width: 480px) {
    .login-glass-card {
        padding: 2.5rem 1.8rem;
        border-radius: 24px;
    }
}
