/* Fondo general del login */
.login-page {
    background: linear-gradient(110deg, #0B2FE6, #018339, #E6BE43);
    background-size: 600% 600%;
    animation: gradientAnimation 20s ease infinite;
    min-height: 100vh;
}

/* Animación del fondo */
@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* Caja centrada del login */
.login-box {
    margin: 7% auto;
}

/* Tarjeta del formulario */
.card {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Cabecera de la tarjeta */
.card-header {
    background: transparent;
    border-bottom: none;
    text-align: center;
}

.card-body {
    padding: 0 1.25rem 2.25rem 1.25rem;
}

/* Logo UMA */
.logo-uma {
    height: 80px;
    max-width: 280px;
    width: auto;
    object-fit: contain;
}

/* Línea horizontal decorativa */
.hr-separator {
    width: 90%;
    height: 2px;
    background-color: #ccc;
    opacity: 0.4;
    border: none;
}

/* Nombre de la app */
.app-name-link {
    font-size: 2.1rem;
    font-weight: 700;
    color: #0B2FE6;
    text-decoration: none;
}

/* Texto debajo del logo */
.login-box-msg {
    color: #6c757d;
    font-size: 1rem;
    margin-top: 4px;
    margin-bottom: 6px;
}

/* Botón */
.btn-primary {
    background: #018339;
    border: none;
    border-radius: 25px;
    padding: 6px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(11, 47, 230, 0.4);
}

/* Campos de entrada */
.form-control {
    border-radius: 25px;
    border: 1px solid #cccccc;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #018339;
    box-shadow: 0 0 0 0.2rem rgba(230, 190, 67, 0.25);
}

/* Íconos de input */
.input-group-text {
    border-radius: 25px;
    border-right: none;
    background: #0B2FE6;
    color: #fff;
}

/* Ajustes para input-group con prepend */
.input-group-prepend .input-group-text {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

/* Ajustes para input con prepend */
.input-group-prepend+.form-control {
    border-radius: 0 25px 25px 0;
    border-left: none;
}

/* Ajustes para input con prepend Y append */
.input-group-prepend+.form-control:not(:last-child) {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

/* Ajustes para input-group con append */
.input-group-append .input-group-text {
    border-radius: 0 25px 25px 0;
    border-left: none;
}

/* Alertas */
.alert {
    border-radius: 10px;
    border: none;
}

/* Asegurar que SweetAlert aparezca por encima de todo */
.swal2-container {
    z-index: 10000 !important;
}

/* CAPTCHA Section */
#captchaContainer {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

#captchaContainer .alert {
    margin-bottom: 10px;
}

#captchaImage {
    cursor: pointer;
    transition: all 0.2s ease;
}

#captchaImage:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Toggle Password Button */
.toggle-password {
    background: #f8f9fa !important;
    border-left: none !important;
    border-radius: 0 25px 25px 0 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057 !important;
}

.toggle-password:hover {
    background: #e9ecef !important;
    color: #018339 !important;
}

.toggle-password i {
    font-size: 1rem;
}

/* Secondary Button */
.btn-secondary {
    background: #6c757d;
    border: none;
    border-radius: 25px;
    padding: 6px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* --- Premium SweetAlert Custom Classes --- */
.premium-swal-popup {
    border-radius: 20px !important;
    padding: 2rem !important;
    border: 1px solid rgba(1, 131, 57, 0.1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.premium-swal-title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 0.5rem !important;
}

.premium-swal-text {
    font-size: 1.1rem !important;
    color: #666 !important;
    line-height: 1.5 !important;
}

.swal2-confirm {
    border-radius: 25px !important;
    padding: 12px 35px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(1, 131, 57, 0.3) !important;
}