.demo-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 25px;
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.demo-header h1 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.demo-header p {
  color: var(--dark-color);
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 20px;
}

.demo-footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  color: var(--dark-color);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Estilos del botón para abrir el modal */
.btn-open-modal {
  background-color: var(--primary-color);
  color: var(--white-color) !important;
  border-radius: 10px;
  padding: 15px 30px !important;
  font-weight: 600;
  border: 2px solid var(--primary-color);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.btn-open-modal i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.btn-open-modal:hover {
  background-color: transparent;
  color: var(--primary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Estilos del modal personalizado */
.modal-custom {
  font-family: "Inter", sans-serif;
}

.modal-custom .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-custom .modal-header {
  background: linear-gradient(135deg, var(--primary-color), #1a6fa0);
  color: var(--white-color);
  border-bottom: none;
  padding: 2rem;
  position: relative;
}

.modal-custom .modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--accent-color)
  );
}

.modal-custom .modal-title {
  font-weight: 700;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
}

.modal-custom .modal-title i {
  margin-right: 12px;
  font-size: 2rem;
}

.modal-custom .btn-close {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  opacity: 0.9;
  padding: 10px;
  transition: var(--transition);
}

.modal-custom .btn-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transform: rotate(90deg);
}

.modal-custom .modal-body {
  padding: 2.5rem 2rem;
}

/* Estilos del formulario */
.form-group-custom {
  margin-bottom: 1.8rem;
  position: relative;
}

.form-label-custom {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
}

.form-label-custom i {
  margin-right: 10px;
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.input-group-custom {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control-custom {
  border: 2px solid #e0e6ed;
  border-radius: 10px;
  padding: 0.9rem 1rem 0.9rem 3rem;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  background-color: #fcfdfe;
  width: 100%;
}

.form-control-custom:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(26, 82, 118, 0.15);
  background-color: var(--white-color);
}

.form-control-custom.is-valid {
  border-color: var(--secondary-color);
}

.form-control-custom.is-invalid {
  border-color: #e74c3c;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--primary-color);
  font-size: 1.1rem;
  z-index: 10;
}

.toggle-password {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--dark-color);
  opacity: 0.7;
  transition: var(--transition);
  cursor: pointer;
  z-index: 10;
}

.toggle-password:hover {
  color: var(--primary-color);
  opacity: 1;
}

/* Botón de envío */
.btn-submit-custom {
  background: linear-gradient(135deg, var(--primary-color), #1a6fa0);
  color: var(--white-color);
  border: none;
  border-radius: 10px;
  padding: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  width: 100%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  cursor: pointer;
}

.btn-submit-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(26, 82, 118, 0.2);
  background: linear-gradient(135deg, #1a6fa0, var(--primary-color));
}

.btn-submit-custom i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.btn-submit-custom:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Enlaces adicionales */
.form-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.form-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.form-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.form-link i {
  margin-right: 8px;
}

/* Separador */
.separator {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: #a0a7b0;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e0e6ed;
}

.separator span {
  padding: 0 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Botones de login social */
.social-login {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-social {
  flex: 1;
  padding: 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 2px solid #e0e6ed;
  background-color: var(--white-color);
  color: var(--dark-color);
}

.btn-social i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.btn-social:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.btn-google:hover {
  border-color: #db4437;
  color: #db4437;
}

.btn-microsoft:hover {
  border-color: #00a4ef;
  color: #00a4ef;
}

/* Mensajes de validación */
.valid-feedback,
.invalid-feedback {
  display: block;
  margin-top: 0.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.valid-feedback i,
.invalid-feedback i {
  margin-right: 8px;
}

.valid-feedback {
  color: var(--secondary-color);
}

.invalid-feedback {
  color: #e74c3c;
}

/* Modal footer */
.modal-custom .modal-footer {
  border-top: 1px solid #eef2f7;
  padding: 1.5rem 2rem;
  background-color: #f9fbfd;
  display: flex;
  justify-content: center;
}

.modal-footer-text {
  color: var(--dark-color);
  font-weight: 500;
}

.modal-footer-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  margin-left: 5px;
  transition: var(--transition);
}

.modal-footer-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Efecto de carga */
.spinner {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white-color);
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .modal-custom .modal-body {
    padding: 2rem 1.5rem;
  }

  .modal-custom .modal-header {
    padding: 1.5rem;
  }

  .social-login {
    flex-direction: column;
  }

  .form-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .modal-custom .modal-title {
    font-size: 1.5rem;
  }

  .modal-custom .modal-body {
    padding: 1.5rem 1rem;
  }
}
