/* ============================================
   REGISTRO - ESTILOS MODERNOS
   ============================================ */

/* Card principal */
.card.rounded-4 {
    border-radius: 1rem !important;
    overflow: hidden;
}

/* Inputs con iconos */
.input-group-text {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Estados de validación */
.form-control.is-valid {
    border-color: #198754;
    background-image: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

/* Indicadores de estado */
#username-status i,
#password-match-status i,
#email-status i,
#email-match-status i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Barra de fortaleza de contraseña */
.progress {
    background-color: #e9ecef;
    border-radius: 2px;
}

.progress-bar {
    transition: width 0.4s ease, background-color 0.4s ease;
}

/* Pasos numerados */
.badge.rounded-pill {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Checkbox de términos */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label a {
    text-decoration: underline;
    transition: color 0.2s;
}

.form-check-label a:hover {
    color: #0b5ed7 !important;
}

/* Botón de envío */
#btn-register {
    transition: all 0.3s ease;
    padding: 0.875rem;
    font-size: 1.05rem;
}

#btn-register:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

#btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* reCAPTCHA container */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem !important;
    }
    
    .input-group-text {
        padding: 0.5rem 0.75rem;
    }
    
    #btn-register {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

/* Toast personalizado para errores */
.swal2-popup {
    border-radius: 12px !important;
}