/**
 * Estilos para el popup de registro
 */
.register-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.register-popup-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.register-popup-overlay.show .register-popup-container {
    transform: scale(1);
}

.register-popup-header {
    background: linear-gradient(135deg, #2bbef9 0%, #1e88e5 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.register-popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.register-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.register-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.register-popup-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Estilos del formulario dentro del popup */
.register-popup-form .form-floating {
    margin-bottom: 15px;
}

.register-popup-form .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.register-popup-form .form-control:focus {
    border-color: #2bbef9;
    box-shadow: 0 0 0 0.2rem rgba(43, 190, 249, 0.25);
}

.register-popup-form .form-floating > label {
    color: #666;
    font-size: 0.9rem;
}

.register-popup-form .btn-primary {
    background: linear-gradient(135deg, #2bbef9 0%, #1e88e5 100%);
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    margin-top: 10px;
}

.register-popup-form .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(43, 190, 249, 0.4);
}

.register-popup-form .btn-primary:disabled {
    opacity: 0.7;
    transform: none;
    cursor: not-allowed;
}

/* Secciones del formulario */
.register-popup-section {
    margin-bottom: 25px;
}

.register-section-header {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border-left: 4px solid #2bbef9;
}

.register-section-header h6 {
    color: #2bbef9;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    border: none;
    padding: 0;
}

.register-section-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

/* Estilos para labels mejorados */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2bbef9;
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.form-label i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2bbef9;
    box-shadow: 0 0 0 0.2rem rgba(43, 190, 249, 0.25);
    outline: none;
}

.form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #2bbef9;
    box-shadow: 0 0 0 0.2rem rgba(43, 190, 249, 0.25);
    outline: none;
}

/* Mantener compatibilidad con estilos antiguos */
.register-popup-section h6 {
    color: #2bbef9;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.register-popup-section h6 i {
    margin-right: 8px;
}

/* Botones de acción */
.register-popup-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.register-popup-actions .btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
}

.register-popup-actions .btn-outline-secondary {
    border-color: #ddd;
    color: #666;
}

.register-popup-actions .btn-outline-secondary:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

/* Login link */
.register-popup-login {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.register-popup-login a {
    color: #2bbef9;
    text-decoration: none;
    font-weight: 500;
}

.register-popup-login a:hover {
    text-decoration: underline;
}

/* Alertas */
.register-popup-form .alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.register-popup-form .alert .btn-close {
    padding: 0.5rem 0.5rem;
}

/* Loading spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Responsive */
@media (max-width: 576px) {
    .register-popup-container {
        width: 95%;
        margin: 10px;
    }
    
    .register-popup-body {
        padding: 20px;
    }
    
    .register-popup-header {
        padding: 15px 20px;
    }
    
    .register-popup-header h3 {
        font-size: 1.1rem;
    }
}

/* Animaciones */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.register-popup-container {
    animation: slideInUp 0.3s ease;
}

/* Scroll personalizado */
.register-popup-body::-webkit-scrollbar {
    width: 6px;
}

.register-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.register-popup-body::-webkit-scrollbar-thumb {
    background: #2bbef9;
    border-radius: 3px;
}

.register-popup-body::-webkit-scrollbar-thumb:hover {
    background: #1e88e5;
}
