/* Importar una fuente más profesional */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

body {
    /* Fondo con la imagen nítida */
    background-image: url('../../public/img/loginb.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    background-color: #f8fafc;
    /* Cambiamos height por min-height para evitar saltos de layout */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    margin: 0;
    /* Evitamos que el scrollbar aparezca/desaparezca bruscamente */
    overflow-x: hidden;
}

body.swal2-shown {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 3rem 2.5rem;
    width: 90%;
    max-width: 400px;
    border: none;
    /* Reducimos la transición para que no intente animar el movimiento si el body cambia */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    /* Asegura un contexto de renderizado estable */
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-header i {
    font-size: 44px;
    color: #2563eb;
    /* Azul un poco más serio */
    background: #eff6ff;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 20px;
    /* Estilo tipo app moderno */
    margin-bottom: 1rem;
    display: inline-block;
}

.login-header h3 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.input-group-text {
    border-radius: 10px 0 0 10px;
    border-color: #e2e8f0;
}

.form-control {
    border-radius: 0 10px 10px 0;
    /* Match con el input-group */
    padding: 12px;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.btn-login {
    background: #2563eb;
    border: none;
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    margin-top: 1.5rem;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-login:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}