/* ==========================================
   CUSTOM MODAL LOADER
   ========================================== */

/* Contenedor del Modal (Fondo oscuro) */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.54); /* Colors.black54 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* El cuerpo del Dialog */
.custom-dialog {
    background-color: #ffffff;
    border-radius: 20px; /* BorderRadius.circular(20.0) */
    padding: 32px 24px; /* vertical: 32, horizontal: 24 */
    width: 90%;
    max-width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

/* El Stack del Loader (Spinner + Icono) */
.loader-stack {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CircularProgressIndicator */
.circular-indicator {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3.5px solid #f3f3f3; /* Fondo del spinner */
    border-top: 3.5px solid var(--loader-color, #1A202C); /* Color dinámico */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-sizing: border-box;
}

/* Icono en el centro del Stack */
.loader-icon {
    font-size: 30px;
    color: var(--loader-color, #1A202C);
}

/* Textos */
.loader-title {
    margin-top: 28px;
    margin-bottom: 0;
    font-size: 17px;
    font-weight: 700;
    color: #1A202C;
    font-family: sans-serif;
}

.loader-subtitle {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 13px;
    color: #9e9e9e; /* Colors.grey.shade500 */
    font-weight: 400;
    font-family: sans-serif;
}

/* Animación de rotación */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Login */
.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(48px, 10vw, 108px);
    font-weight: 900;
    letter-spacing: 8px;
    line-height: 1.05;
    background: linear-gradient(135deg, #002D52 0%, #1E7A3A 55%, #34A853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

.hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: clamp(15px, 2vw, 19px);
    color: #3D5670;
    max-width: 580px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.login-form-container{
    background: linear-gradient(135deg, #34A853 0%, #1E7A3A 35%, #002D52);
}

.form-title{
    font-family: 'Outfit', sans-serif;
    font-size: clamp(20px, 4vw, 40px);
    font-weight: 900;
    color: #FFFFFF;
}

.input-login{
    background-color: #FFFFFF !important;
    color: #002D52 !important;
}

.input-login::placeholder{
    color: #002D5296 !important;
}

.form-button{
    background: linear-gradient(135deg, #34A853 0%, #1E7A3A 75%, #002D52);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(10px, 2vw, 15px);
    font-weight: 900;
    color: #FFFFFF;
}

/* ==========================================
   CAMPOS DATEPICKER
   ========================================== */

.flatpickr-calendar .flatpickr-current-month .numInputWrapper {
    display: inline-flex !important;
    width: 65px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.flatpickr-calendar .flatpickr-current-month input.cur-year {
    display: inline-block !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
}