/* Estilos Glassmorphism para Login - Adaptado a Manual de Marca Yosef */
/* Nota: Requiere que style.css se cargue primero para tener acceso a las variables CSS */

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--azul-medianoche) 0%, var(--azul-marino) 50%, var(--azul-zafiro-oscuro) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.login-background .shape {
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url('/images/S.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(60px);
    opacity: 0.4;
}

.shape:first-child {
    left: -80px;
    top: -80px;
    transform: rotate(-15deg);
}

.shape:last-child {
    right: -30px;
    bottom: -80px;
    transform: rotate(15deg);
}

.login-form-container {
    min-height: 520px;
    width: 400px;
    background-color: rgba(255, 255, 255, 0.13);
    position: relative;
    z-index: 2;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(22, 40, 62, 0.6);
    padding: 50px 35px;
}

.login-form-container * {
    font-family: 'Lato', sans-serif;
    color: #ffffff;
    letter-spacing: 0.5px;
    outline: none;
    border: none;
}

.login-form-container h3 {
    font-size: 32px;
    font-weight: 700; /* Lato Bold */
    line-height: 42px;
    text-align: center;
    margin-bottom: 10px;
}

.login-form-container label {
    display: block;
    margin-top: 30px;
    font-size: 16px;
    font-weight: 700; /* Lato Bold */
    color: #ffffff;
}

.login-form-container input {
    display: block;
    height: 50px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 3px;
    padding: 0 10px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400; /* Lato Regular */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.login-form-container input:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--azul-ceruleo);
    box-shadow: 0 0 10px rgba(66, 122, 189, 0.3);
}

.login-form-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.login-form-container button {
    margin-top: 50px;
    width: 100%;
    background-color: #ffffff;
    color: var(--azul-medianoche);
    padding: 15px 0;
    font-size: 18px;
    font-weight: 700; /* Lato Bold */
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.login-form-container button:hover {
    background-color: var(--azul-ceruleo);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 122, 189, 0.4);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    text-align: center;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.login-divider span {
    padding: 0 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.microsoft-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    margin-top: 10px;
}

.microsoft-login-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.microsoft-login-btn svg {
    flex-shrink: 0;
}

.microsoft-login-btn span {
    color: #ffffff;
    font-weight: 600;
}

.login-error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ffffff;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 14px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .login-background {
        width: 100%;
        height: 100%;
    }
    
    .login-form-container {
        width: 90%;
        max-width: 400px;
        padding: 40px 25px;
    }
    
    .shape:first-child {
        left: -50px;
        top: -50px;
    }
    
    .shape:last-child {
        right: -20px;
        bottom: -50px;
    }
}
