/* Fondo general del registro - igual que login */
.register-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 registro */
.register-box {
    margin: 3% auto;
    width: 550px;
    max-width: 95%;
}

/* 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;
}

/* Texto debajo del logo */
.register-box-msg {
    color: #6c757d;
    font-size: 1rem;
    margin-top: 4px;
    margin-bottom: 20px;
}

/* Campos de entrada - igual que login */
.form-control {
    border-radius: 25px;
    border: 1px solid #cccccc;
    padding: 12px 20px;
    transition: all 0.3s ease;
    height: auto;
    /* Permitir que la altura se ajuste */
}

/* Ajuste específico para inputs dentro de grupos con íconos */
.input-group .form-control {
    border-radius: 0 25px 25px 0;
    border-left: none;
    /* Eliminar borde izquierdo para unir con el ícono */
}

.form-control:focus {
    border-color: #018339;
    box-shadow: 0 0 0 0.2rem rgba(230, 190, 67, 0.25);
}

/* Estilos específicos para select */
select.form-control {
    cursor: pointer;
    appearance: none;
    /* Eliminar estilo nativo para consistencia */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    /* Espacio para la flecha */
}

/* Íconos de input - igual que login */
.input-group-text {
    border-radius: 25px 0 0 25px;
    border-right: none;
    background: #0B2FE6;
    color: #fff;
}

/* Select personalizado */
select.form-control {
    cursor: pointer;
}

/* Botón - igual que login */
.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);
}

.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);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

/* Sección de campos académicos */
#estudiante_fields {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.academic-title {
    color: #018339;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

/* Asegurar que SweetAlert aparezca por encima de todo */
.swal2-container {
    z-index: 10000 !important;
}

/* Responsive */
@media (max-width: 576px) {
    .register-box {
        margin: 2% auto;
        width: 100%;
    }

    .logo-uma {
        height: 70px;
        max-width: 250px;
    }

    .card-body {
        padding: 0 1rem 2rem 1rem;
    }
}

/* Password Requirements Section */
.password-requirements {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid #e9ecef;
}

.password-requirements ul {
    margin: 0;
    padding-left: 0;
}

.password-requirements li {
    padding: 2px 0;
    font-size: 0.8rem;
    color: #6c757d;
}

.password-requirements li i {
    width: 14px;
    margin-right: 6px;
}

/* Password Strength Bar */
.password-strength-wrapper {
    padding: 0 2px;
}

.password-strength-wrapper .progress {
    border-radius: 5px;
    background-color: #e9ecef;
}

.password-strength-wrapper .progress-bar {
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

/* Toggle Password Button */
.toggle-password {
    background: #f8f9fa;
    border-left: none;
    border-radius: 0 25px 25px 0 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-password:hover {
    background: #e9ecef;
    color: #018339;
}

/* Input group with toggle */
.input-group .form-control + .input-group-append .toggle-password {
    border-left: 1px solid #ced4da;
}