/* ============================================================
   ESTRUCTURA GLOBAL (MOBILE FIRST)
   ============================================================ */
html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #e3f2fd;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 0;
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* LA TARJETA PRINCIPAL */
.login-box {
    width: 95%; 
    max-width: 420px; 
    background-color: #ffffff;
    padding: 25px; 
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.1) !important;
    border: 1px solid #bbdefb;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- ADAPTACIÓN A ESCRITORIO (Media Queries) --- */
@media (min-width: 768px) {
    .login-body {
        padding: 40px 0;
    }

    .mode-usuario {
        max-width: 550px !important;
    }

    .mode-centro {
        max-width: 800px !important;
    }
    
    .login-box {
        padding: 40px;
    }
}

/* ELEMENTOS DINÁMICOS */
.animate-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CABECERA Y LOGO */
.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-logo {
    width: 100px;
    height: auto;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.08);
}

.login-header h2 {
    color: #1565c0;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

/* FORMULARIOS */
.form-group label, label {
    color: #1976d2;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: block;
    padding-left: 4px;
}

.form-control, .form-select {
    border: 2px solid #f1f8ff;
    background-color: #fcfdfe;
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: #2196f3;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
    outline: none;
}

/* BOTÓN OASIS */
.btn-block {
    background: linear-gradient(135deg, #2196f3 0%, #1565c0 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.35);
}

.btn-block:active {
    transform: translateY(0);
}

/* PIE */
.login-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
}

.login-footer a {
    color: #1976d2;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

/* Ajustes específicos para móviles muy pequeños */
@media (max-width: 380px) {
    .login-box {
        padding: 20px 15px;
    }
    .login-header h2 {
        font-size: 1.2rem;
    }
}