body {
    margin: 0;
    padding: 0;
    background-size: cover;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Formulario centrado con glassmorphism */
.form {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    text-align: center;
    color: #111;
}

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

.form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.form button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: #EF3B3A;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form button:hover {
    background-color: #c72f2f;
}

@media screen and (max-width: 500px) {
    .form {
        margin: 50px 20px;
        padding: 20px;
    }
}

/* Quita el fondo gris de Bootstrap al pasar el mouse por el ojo */
#btnTogglePassword:hover {
    background-color: transparent !important;
    color: rgba(0, 21, 135, 1) !important;
    /* Usa el color azul de la UNIREM */
}

/* Evita que el botón afecte el redondeado de las esquinas del input */
.input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group .btn {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Estilos para mensajes de error y bloqueo en login */
.login-alert {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
    line-height: 1.4;
}

.login-alert i {
    margin-right: 8px;
    font-size: 1rem;
}

/* Error: credenciales incorrectas (amarillo/naranja) */
.login-alert.alert-error {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #856404;
}

/* Bloqueo: cuenta bloqueada (rojo) */
.login-alert.alert-locked {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #842029;
}

/* ─── Separador y botón Office 365 ─────────────────────────── */

.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0 15px;
    color: rgba(0, 0, 0, 0.35);
    font-size: 13px;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.login-divider span {
    padding: 0 12px;
}

.btn-microsoft {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-microsoft:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.15);
    color: #111;
}

.btn-microsoft:active {
    background: rgba(255, 255, 255, 0.95);
}