h1#form-title {
  margin-top: 2rem;
  color: #020b10;
  font-size: 1.375rem;
}

form.tubi-login-form label {
  text-align: left;
  font-size: 12px;
}

fieldset {
  border: 0px;
  padding: 0px;
}

.split-container {
  display: flex;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 95%;
}

.split-left,
.split-right {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s;
  margin: 0px;
  border-radius: 0px;
  overflow: hidden;
  text-align: center;
}

.split-left {
  border: 0;
  background-color: #3b3a41;
  color: #ffffff;
}

p {
  line-height: 30px;
}

.split-right {
  border: 0;
  padding: 5rem 0px;
}

@media (max-width: 768px) {
  .split-container {
    flex-direction: column-reverse;
  }

  .split-right {
    border: 0;
    padding: 0px;
  }

  .split-left,
  .split-right {
    margin: 0px;
    width: 100%;
    height: 48vh;
  }

  .split-left,
  .split-right {
    margin: 0px;
    width: 100%;
    height: 48vh;
  }
}

/* 0. Custom Checkbox (Global) - Corregido */
.field-container label.custom-checkbox {
  display: flex !important;
  position: relative;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 0;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 10px;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  flex-shrink: 0;
  position: relative;
  top: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  background-color: #fff;
  width: 20px;
  height: 20px;
}

.custom-checkbox:hover input~.checkmark {
  border-color: #399d57;
  background-color: #f8fafc;
}

.custom-checkbox input:checked~.checkmark {
  border-color: #399d57;
  background-color: #399d57;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.checkmark:after {
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  transform: rotate(45deg);
  border: solid white;
  border-width: 0 2px 2px 0;
  width: 5px;
  height: 10px;
  content: "";
}

.custom-checkbox input:checked~.checkmark:after {
  display: block;
}

.label-text {
  flex: 1;
  color: #475569;
  text-align: left;
}

.label-text a {
  transition: color 0.2s;
  color: #399d57;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.label-text a:hover {
  color: #1d4ed8;
}

/* 1. Contenedor Principal */
#tubi-register-form {
  margin: 0 auto;

  border-radius: 20px;
  padding: 0rem;
  max-width: 450px;
}

/* 2. Encabezados */
#tubi-register-form h2 {
  margin-bottom: 8px;
  color: #1a1a1a;
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1.2;
}

.creatucuentahoymismo {
  margin-bottom: 2rem;
  color: #666;
  font-size: 1rem;
}

/* 3. Labels y Entradas (Cero Zoom en iPhone) */
#tubi-register-form label {
  display: block;
  margin-top: 1.2rem;
  margin-bottom: 8px;
  color: #444;
  font-weight: 600;
  font-size: 0.9rem;
}

#tubi-register-form input[type="text"],
#tubi-register-form input[type="email"],
#tubi-register-form input[type="password"],
#tubi-register-form input[type="tel"],
.iti input {
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  /* Vital para evitar zoom en iOS */
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  background-color: #f9f9f9;
  padding: 14px 16px;
  width: 100% !important;
  color: #333;
  font-size: 16px !important;
}

/* 4. Estados Focus */
#tubi-register-form input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(108, 117, 127, 0.1);
  border-color: #6c757d;
  background-color: #fff;
}

/* 5. Ajustes para el Plugin de WhatsApp (intl-tel-input) */
.iti {
  display: block;
  margin-bottom: 1rem;
  width: 100%;
}

.iti__selected-country {
  border-radius: 12px 0 0 12px;
  background: #eeeeee !important;
  padding: 0 10px;
}

.iti__dropdown-content {
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border: none !important;
  border-radius: 12px;
  padding: 10px;
}

/* 6. Feedbacks de validación */
#user-login-feedback,
#user-email-feedback {
  margin-top: 5px;
  font-weight: 500;
  font-size: 0.85rem;
}

/* 7. Botón de Registro (Agregando estilo al botón que falta en tu HTML) */
#tubi-register-form button[type="submit"] {
  transition: transform 0.2s;
  cursor: pointer;
  margin-top: 2rem;
  box-shadow: 0 4px 12px rgba(251, 199, 106, 0.3);
  border: none;
  border-radius: 14px;
  background-color: #fbc76a;
  padding: 16px;
  width: 100%;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
}

#tubi-register-form button[type="submit"]:active {
  transform: scale(0.97);
}

/* Ajustes Mobile-First */
@media (max-width: 480px) {
  #tubi-register-form {
    padding: 1.2rem;
  }

  #tubi-register-form h2 {
    font-size: 1.5rem;
  }

  form#tubi-register-form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
  }
}

.visually-hidden {
  position: absolute;
  margin: -1px;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Contenedor del formulario */
.tubi-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
}

/* Etiquetas */
.form-label {
  display: block;
  margin-bottom: 8px;
  padding-left: 4px;
  color: #444;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Contenedor del Input con Icono */
.input-wrapper {
  display: flex;
  position: relative;
  align-items: center;
}

.input-icon {
  display: flex;
  position: absolute;
  left: 14px;
  justify-content: center;
  align-items: center;
  /* El icono no bloquea el click */
  transition: color 0.3s ease;
  pointer-events: none;
  color: #999;
}

.input-icon svg {
  fill: currentColor;
}

/* El Input propiamente dicho */
.form-input {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  /* Cero zoom en iOS */
  border: 1.5px solid #e1e1e1;
  border-radius: 12px;
  background-color: #f9f9f9;
  padding: 14px 16px 14px 45px;
  width: 100%;
  /* Padding izquierdo extra para el icono */
  font-size: 16px !important;
}

/* Efectos al hacer foco */
.form-input:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #6c757d;
  background-color: #ffffff;
}

.form-input:focus+.input-icon {
  color: #6c757d;
  /* El icono se ilumina con el input */
}

/* Botón y Links */
.btn-submit {
  transition: transform 0.2s;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(251, 199, 106, 0.2);
  border: none;
  border-radius: 14px;
  background-color: #fbc76a;
  padding: 16px;
  width: 100%;
  color: #000;
  font-weight: 700;
  font-size: 1rem;
}

.btn-submit:active {
  transform: scale(0.98);
}

.form-footer-links {
  text-align: right;
}

.text-link {
  color: #6c757d;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.footer-text {
  margin-top: 1rem;
  color: #666;
  font-size: 0.9rem;
  text-align: center;
}

/* Ocultar visualmente pero mantener para SEO */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  position: absolute;
  margin: -1px;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Estilos base para el formulario de recuperación */
.tubi-form-standard {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: 100%;
  max-width: 400px;
}

.tubi-form-standard h2 {
  margin-bottom: 8px;
  color: #1a1a1a;
  font-weight: 800;
  font-size: 1.6rem;
}

.form-description {
  margin-bottom: 1.5rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: #444;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Contenedor con icono */
.input-wrapper {
  display: flex;
  position: relative;
  align-items: center;
}

.input-icon {
  display: flex;
  position: absolute;
  left: 14px;
  pointer-events: none;
  color: #999;
}

.form-input {
  transition: all 0.3s ease;
  /* Evita zoom en iPhone */
  border: 1.5px solid #e1e1e1;
  border-radius: 12px;
  background-color: #f9f9f9;
  padding: 14px 16px 14px 45px;
  width: 100%;
  /* Espacio para el icono */
  font-size: 16px !important;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #6c757d;
  background-color: #fff;
}

/* Botón de envío */
.btn-submit {
  transition:
    transform 0.2s,
    background-color 0.2s;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(251, 199, 106, 0.2);
  border: none;
  border-radius: 14px;
  background-color: #fbc76a;
  padding: 16px;
  width: 100%;
  /* Tu color amarillo */
  color: #000;
  font-weight: 700;
  font-size: 1rem;
}

.btn-submit:active {
  transform: scale(0.98);
}

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.text-link {
  color: #6c757d;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.acceso-error {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Animación de entrada para que el usuario lo note */
  animation: slideIn 0.3s ease-out;
  margin: 1rem 0;
  /* Rojo oscuro para legibilidad (Contraste alto) */
  border-left: 4px solid #fc8181;
  border-radius: 12px;
  background-color: #fff5f5;
  padding: 16px;
  max-width: 400px;
  /* Rojo muy suave */
  color: #c53030;
  font-weight: 500;
  font-size: var(--text-xs);
  line-height: 1.4;
}

.error-icon {
  flex-shrink: 0;
  /* Evita que el icono se aplaste si el texto es largo */
  color: #fc8181;
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Soporte para Modo Oscuro */
@media (prefers-color-scheme: dark) {
  .acceso-error {
    border-left-color: #f56565;
    background-color: #2d1a1a;
    color: #feb2b2;
  }
}

.acceso-success {
  display: flex;
  align-items: center;
  gap: 12px;
  /* Animación de entrada sutil */
  animation: fadeInScale 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin: 1rem 0;
  /* Verde oscuro para alto contraste */
  border-left: 4px solid #4ade80;
  border-radius: 12px;
  background-color: #f0fdf4;
  padding: 16px;
  max-width: 400px;
  /* Verde muy suave */
  color: #166534;
  font-weight: 500;
  font-size: var(--text-xs);
  line-height: 1.4;
}

.success-icon {
  flex-shrink: 0;
  color: #22c55e;
}

@keyframes fadeInScale {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Soporte para Modo Oscuro */
@media (prefers-color-scheme: dark) {
  .acceso-success {
    border-left-color: #10b981;
    background-color: #064e3b;
    color: #d1fae5;
  }
}

fieldset.split_fiedset {
  display: flex;
  gap: 20px;
  text-align: left;
}

.btn-submit {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  /* Para posicionar el spinner */
  transition: all 0.3s ease;
}

/* El texto del botón */
.btn-text {
  transition: opacity 0.2s;
}

/* El Spinner (Oculto por defecto) */
.btn-loader {
  position: absolute;
  opacity: 0;
  animation: spin 0.8s linear infinite;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #000;
  /* Color del giro */
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

/* ESTADO CARGANDO */
.btn-submit.is-loading {
  /* Evita doble clic */
  opacity: 0.8;
  pointer-events: none;
}

.btn-submit.is-loading .btn-text {
  opacity: 0;
  /* Escondemos el texto */
}

.btn-submit.is-loading .btn-loader {
  opacity: 1;
  /* Mostramos el giro */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 8. Password Toggle & Validation UX */
.password-toggle {
  display: flex;
  position: absolute;
  right: 14px;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
  color: #999;
}

.password-toggle:hover {
  color: #1a1a1a;
}

.validation-message {
  display: block;
  margin-top: 5px;
  padding-left: 4px;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.validation-message.is-invalid {
  color: #c53030;
}

.validation-message.is-valid {
  color: #166534;
}

.form-input.is-invalid {
  border-color: #fc8181;
}

.form-input.is-valid {
  border-color: #4ade80;
}

/* 9. Password Requirements Checklist */
.password-requirements {
  list-style: none;
  margin: 10px 0 20px 0;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.requirement-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #718096;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.requirement-item:last-child {
  margin-bottom: 0;
}

.requirement-item svg {
  flex-shrink: 0;
  color: #cbd5e0;
  transition: all 0.2s;
}

.requirement-item.is-valid {
  color: #166534;
}

.requirement-item.is-valid svg {
  color: #22c55e;
  transform: scale(1.1);
}