.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;
}

* {
  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);
  }
}

/* Título */
.register-title {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.register-subtitle {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 40px;
  font-size: 1rem;
}

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

.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;
}

.input-group:nth-child(5) {
  animation-delay: 0.4s;
}

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

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

.input-group label {
  color: rgba(255, 255, 255, 0.9);
  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(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

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

.input-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
}

.input-group input.error {
  border: 1px solid rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.1);
}

.input-group input.success {
  border: 1px solid rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.1);
}

/* Password strength indicator */
.password-strength {
  margin-top: 12px;
  height: 6px;
  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 {
  width: 100%;
  background: linear-gradient(90deg, #10b981, #6ee7b7);
}

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

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

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

.requirement.met {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

.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: '✓';
  color: #10b981;
}

/* Botón principal */
.btn-register {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1f2937;
  border: none;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 30px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
  letter-spacing: 1px;
  animation: slideInUp 0.8s ease-out 0.5s backwards;
}

.btn-register:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(251, 191, 36, 0.6);
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
}

.btn-register:active {
  transform: translateY(-1px);
}

.btn-register:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Términos y condiciones */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  animation: slideInUp 0.8s ease-out 0.45s backwards;
}

.terms-check input[type='checkbox'] {
  margin-top: 4px;
  cursor: pointer;
  accent-color: #fbbf24;
}

.terms-check a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.terms-check a:hover {
  text-decoration: underline;
}

/* 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.3);
}

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

/* Botón Google */
.btn-google {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  color: white;
  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;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

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

/* Login link */
.register-login {
  text-align: center;
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  animation: slideInUp 0.8s ease-out 0.65s backwards;
}

.register-login a {
  color: #fbbf24;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

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

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

/* Toast (sin fixed; lo posiciona el contenedor) */
.toast {
  padding: 16px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  color: white;
  animation: toastIn 0.4s ease-out forwards;
}

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

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

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

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

.toast.success {
  background: rgba(16, 185, 129, 0.9);
}

.toast.error {
  background: rgba(239, 68, 68, 0.9);
}

.toast.warning {
  background: #fbbf24;
  color: #1e293b;
}

/* ==== Tema sincronizado con login.html ==== */
:root {
  --seller-bg-start: #111827;
  --seller-bg-mid: #0b1220;
  --seller-bg-end: #000000;
  --seller-surface: rgba(15, 23, 42, 0.72);
  --seller-surface-soft: rgba(31, 41, 55, 0.88);
  --seller-border: rgba(148, 163, 184, 0.28);
  --seller-border-strong: rgba(59, 130, 246, 0.55);
  --seller-text: #ffffff;
  --seller-text-muted: #9ca3af;
  --seller-text-soft: #6b7280;
  --seller-primary: #2563eb;
  --seller-primary-hover: #3b82f6;
  --seller-focus-glow: rgba(59, 130, 246, 0.35);
}

body {
  background: linear-gradient(
    135deg,
    var(--seller-bg-start) 0%,
    var(--seller-bg-mid) 55%,
    var(--seller-bg-end) 100%
  );
  color: var(--seller-text);
}

.glass-card {
  background: var(--seller-surface);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--seller-border);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.55);
}

.register-title {
  color: var(--seller-text);
}

.register-subtitle {
  color: var(--seller-text-muted);
}

.input-group label {
  color: #d1d5db;
}

.input-group input {
  background: var(--seller-surface-soft);
  border: 1px solid var(--seller-border);
  color: var(--seller-text);
}

.input-group input::placeholder {
  color: var(--seller-text-soft);
}

.input-group input:focus {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid var(--seller-border-strong);
  box-shadow: 0 0 20px var(--seller-focus-glow);
}

.password-strength {
  background: rgba(148, 163, 184, 0.22);
}

.password-strength-text,
.password-requirements {
  color: var(--seller-text-muted);
}

.requirement {
  background: rgba(17, 24, 39, 0.6);
}

.btn-register {
  background: linear-gradient(
    135deg,
    var(--seller-primary) 0%,
    var(--seller-primary-hover) 100%
  );
  color: var(--seller-text);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.btn-register:hover {
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.terms-check {
  color: var(--seller-text-muted);
}

.terms-check input[type='checkbox'] {
  accent-color: var(--seller-primary);
}

.terms-check a {
  color: #60a5fa;
}

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

.divider::before,
.divider::after {
  background: rgba(148, 163, 184, 0.28);
}

.divider span {
  color: var(--seller-text-soft);
}

.btn-google {
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid var(--seller-border);
  color: var(--seller-text);
}

.btn-google:hover {
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.24);
  border: 1px solid rgba(59, 130, 246, 0.45);
}

.register-login {
  color: var(--seller-text-muted);
}

.register-login a {
  color: #60a5fa;
}

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

.modal-panel {
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 100%);
  box-shadow: 0 0 32px 0 #1e293bcc;
  border: 2px solid #3b82f6;
}

.modal-actions .primary {
  background: var(--seller-primary);
}

.modal-actions button {
  border: 1px solid var(--seller-border);
}
