/* Estilos para la página de login moderno */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 50%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

/* Círculos decorativos de fondo */
.login-container::before,
.login-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    z-index: 0;
}

.login-container::before {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
}

.login-container::after {
    width: 300px;
    height: 300px;
    bottom: -50px;
    right: -50px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-header {
    background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    color: white;
}

.login-logo {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    padding: 10px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.login-body {
    padding: 2.5rem 2rem;
}

.login-title {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #1e1b4b;
}

.login-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-floating > .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    height: calc(3.5rem + 2px);
    font-weight: 500;
}

.form-floating > .form-control:focus {
    border-color: #4338ca;
    box-shadow: 0 0 0 4px rgba(67, 56, 202, 0.1);
}

.form-floating > label {
    padding-left: 1rem;
    font-weight: 500;
    color: #9ca3af;
}

.btn-login {
    background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
    border: none;
    border-radius: 0.75rem;
    padding: 0.8rem;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(67, 56, 202, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(67, 56, 202, 0.4);
    filter: brightness(1.1);
}

.login-footer {
    text-align: center;
    padding-bottom: 2rem;
    color: #9ca3af;
    font-size: 0.85rem;
}


/* ===== ESTILOS MODERNOS PARA EL DASHBOARD Y LA APP ===== */

/* 1. Aplicar la nueva fuente y un fondo sutil a toda la app */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fc; /* Un gris muy claro para el fondo */
}

/* 2. Estilos para las nuevas tarjetas con gradientes */
.card-gradient {
    color: white; /* El texto dentro de la tarjeta será blanco */
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Transición suave */
}

/* Efecto al pasar el cursor: la tarjeta se "levanta" */
.card-gradient:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

/* 3. Definición de los gradientes de color (Asegurando alto contraste) */
.card-gradient-primary {
    background: linear-gradient(45deg, #1e3a8a 0%, #1e40af 100%);
}

.card-gradient-secondary {
    background: linear-gradient(45deg, #374151 0%, #111827 100%);
}

.card-gradient-warning {
    background: linear-gradient(45deg, #92400e 0%, #78350f 100%);
}

.card-gradient-info {
    background: linear-gradient(45deg, #155e75 0%, #083344 100%);
}

/* 4. Estilo para el texto dentro de las tarjetas con gradiente */
.card-gradient .card-body .text-xs {
    color: #ffffff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-gradient .card-body .h5 {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.8rem;
}

/* 5. Estilo para los iconos, ahora más grandes y como marca de agua */
.card-gradient .card-body .fa-2x {
    font-size: 4rem; /* Icono mucho más grande */
    opacity: 0.2; /* Lo hacemos semitransparente */
    transform: rotate(-20deg); /* Lo giramos un poco */
    position: absolute; /* Lo posicionamos libremente */
    top: 15px;
    right: 15px;
    transition: all 0.3s ease;
}

/* Efecto en el icono al pasar el cursor por la tarjeta */
.card-gradient:hover .fa-2x {
    opacity: 0.4;
    transform: rotate(0deg) scale(1.1);
}