* {
  scroll-behavior: smooth;
}

.toast.success {
  background: linear-gradient(90deg, #10b981, #22d3ee);
  color: #fff;
  border: 1px solid #10b981;
  box-shadow: 0 2px 12px #10b98199;
}

.toast.warning {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  color: #1f2937;
  border: 1px solid #fbbf24;
  box-shadow: 0 2px 12px #fbbf24aa;
}

/* Estilos básicos del modal */
.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-panel {
  position: relative;
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 100%);
  color: #fff;
  box-shadow: 0 0 32px 0 #1e293bcc;
  border: 2px solid #fbbf24;
  border-radius: 18px;
  margin: 32px;
  padding: 32px 24px;
  max-width: 420px;
  width: 90%;
  z-index: 10001;
}

.modal-panel h3 {
  margin: 0 0 8px 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.modal-actions .primary {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
}

.modal-actions button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}
.signup-shape-1-size {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
}
.signup-shape-2-size {
  width: 300px;
  height: 300px;
  bottom: -50px;
  right: -50px;
}
.signup-input-relative {
  position: relative;
}
.signup-input-with-eye {
  padding-right: 42px;
}
.signup-eye-icon {
  position: absolute;
  right: 12px;
  top: 46px;
  cursor: pointer;
  fill: rgba(255, 255, 255, 0.5);
}
.signup-eye-icon-hidden {
  display: none;
}
.signup-register-login-animated {
  margin-bottom: 30px;
  animation: slideInUp 0.8s ease-out 0.7s backwards;
}
.signup-captcha-wrapper {
  display: flex;
  justify-content: center;
  transform: scale(1.15);
  transform-origin: center;
}
.signup-modal-iframe {
  width: 100%;
  height: 80vh;
  border: none;
}

* {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow: auto;
}

/* Fondo animado con parallax */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.parallax-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

/*.shape-1 {
        width: 300px;
        height: 300px;
        background: white;
        top: 10%;
        left: 5%;
        animation: float 8s ease-in-out infinite;
      }

      .shape-2 {
        width: 200px;
        height: 200px;
        background: white;
        bottom: 20%;
        right: 10%;
        animation: float 10s ease-in-out infinite reverse;
      }

      .shape-3 {
        width: 150px;
        height: 150px;
        background: white;
        top: 50%;
        right: 5%;
        animation: float 12s ease-in-out infinite;
      }*/

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  25% {
    transform: translateY(-20px) translateX(-10px);
  }

  50% {
    transform: translateY(-40px) translateX(10px);
  }

  75% {
    transform: translateY(-20px) translateX(-10px);
  }
}

/* Container principal */
.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 50px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(31, 38, 135, 0.37);
  animation: slideInUp 0.8s ease-out;
  /* max-height: 90vh; */
  /* overflow-y: auto; */
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

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

body {
  /* [COLOR BUYER] Fondo Corporativo Oscuro (Navy/Indigo) */
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Fondo animado */
.parallax-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.parallax-shape {
  position: absolute;
  border-radius: 50%;
  /* [COLOR BUYER] Acento Azul Cielo */
  opacity: 0.1;
  background: #60a5fa;
}

/* Container */
.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Card PRO (Se mantiene el estilo del afiliado) */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 50px;
  max-width: 550px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

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

/* Títulos */
.register-title {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.1px;
}

.register-subtitle {
  color: #94a3b8;
  /* Slate-400 */
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Inputs Corporativos */
.input-group {
  margin-bottom: 25px;
  position: relative;
  animation: fadeInScale 0.6s ease-out backwards;
}

/* Animación en cascada */
.input-group:nth-child(2) {
  animation-delay: 0.1s;
}

.input-group:nth-child(3) {
  animation-delay: 0.2s;
}

.input-group:nth-child(4) {
  animation-delay: 0.3s;
}

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

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

.input-group label {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.5px;
}

.input-group input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.input-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  /* [COLOR BUYER] Focus Azul Cielo (Coherente con links) */
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
}

/* Estados de validación */
.input-group input.error {
  border: 1px solid rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
}

.input-group input.success {
  /* [COLOR BUYER] Borde y fondo Azul */
  border: 1px solid rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.1);
}

/* Password Strength - Adaptado a oscuro */
.password-strength {
  margin-top: 12px;
  height: 6px;
  /* Más fino */
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  display: none;
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.strength-weak {
  width: 33%;
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.strength-medium {
  width: 66%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.strength-strong {
  /* [MANTENIDO] Fuerte Verde (Éxito) */
  width: 100%;
  background: linear-gradient(90deg, #10b981, #6ee7b7);
}

.password-strength-text {
  font-size: 1rem;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
  display: none;
  transition: all 0.3s ease;
}

/* Requisitos */
.password-requirements {
  margin-top: 15px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  display: none;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.requirement.met {
  /* [COLOR BUYER] Verde se reemplaza por Azul Cielo */
  color: #60a5fa;
  /* [COLOR BUYER] Fondo de requisito metido */
  background: rgba(59, 130, 246, 0.2);
}

.requirement-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.requirement.met .requirement-icon::after {
  content: '✓';
}

/* Botón Principal (Azul) */
.btn-register {
  width: 100%;
  padding: 15px;
  /* CAMBIO: Color sólido a un verde estándar, menos llamativo */
  background: #2563eb;
  /* Un verde estándar de Material Design */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
  margin-bottom: 20px;
  /* Ajuste de la sombra al nuevo color */
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-register:hover {
  transform: translateY(-2px);
  background: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-register:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Términos */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.terms-check input[type='checkbox'] {
  margin-top: 4px;
  cursor: pointer;
  /* [COLOR BUYER] Checkbox Azul */
  accent-color: #3b82f6;
}

.terms-check a {
  /* [COLOR BUYER] Link Azul Cielo */
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
}

.terms-check a:hover {
  color: #93c5fd;
}

/* Divisor */
.divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
  animation: slideInUp 0.8s ease-out 0.55s backwards;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.divider span {
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Botón Google */
.btn-google {
  width: 100%;
  padding: 14px;
  /* CAMBIO: Color sólido a verde estándar */
  background: #2563eb;
  /* Verde base */
  color: white;
  /* CAMBIO: Eliminamos el borde blanco transparente */
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: slideInUp 0.8s ease-out 0.6s backwards;
  /* CAMBIO: Sombra inicial como el btn-register */
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-google:hover {
  /* CAMBIO: Color de fondo en hover (verde más oscuro) */
  background: #3b82f6;
  transform: translateY(-2px);
  /* CAMBIO: Sombra de hover más pronunciada */
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  /* CAMBIO: Eliminamos el cambio de borde, ya que no tiene borde base */
  border: none;
}

.google-icon {
  width: 20px;
  height: 20px;
}

/* Login Link */
.register-login {
  text-align: center;
  margin-top: 25px;
  color: #94a3b8;
  font-size: 1rem;
  animation: slideInUp 0.8s ease-out 0.65s backwards;
}

.register-login a {
  /* [COLOR BUYER] Link Azul Cielo */
  color: #60a5fa;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.register-login a:hover {
  text-decoration: underline;
  color: #93c5fd;
}

/* Toast */
/* Contenedor de toasts (stack vertical hacia arriba) */
#toastContainer {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column-reverse;
  /* nuevos abajo, anteriores suben */
  gap: 12px;
  z-index: 1000;
}

/* Toast (SIN position fixed, lo controla el contenedor) */
.toast {
  padding: 16px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  color: white;

  animation: toastIn 0.4s ease-out forwards;
}

/* Entrada */
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

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

/* Salida (MISMA animación pero inversa) */
@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(50px);
  }
}

.toast.success {
  background: #10b981;
}

.toast.error {
  background: #ef4444;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

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