.toast.error {
  background: linear-gradient(90deg, #ef4444, #f87171);
  color: #fff;
  border: 1px solid #ef4444;
  box-shadow: 0 2px 12px #ef444499;
}
.toast.warning {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  color: #1f2937;
  border: 1px solid #fbbf24;
  box-shadow: 0 2px 12px #fbbf24aa;
}
.toast.success {
  background: linear-gradient(90deg, #10b981, #22d3ee);
  color: #fff;
  border: 1px solid #10b981;
  box-shadow: 0 2px 12px #10b98199;
}
* {
  scroll-behavior: smooth;
}

: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%
  );
  min-height: 100vh;
  overflow: auto;
  color: var(--seller-text);
}

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

.glass-card {
  margin-top: 70px;
}

.login-register {
  margin-bottom: 30px;
}

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

/* Glassmorphism Card */
.glass-card {
  background: var(--seller-surface);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 30px;
  border: 1px solid var(--seller-border);
  padding: 50px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.55);
  animation: slideInUp 0.8s ease-out;
}

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

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

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

.login-subtitle {
  color: var(--seller-text-muted);
  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;
}

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

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

.input-group label {
  color: #d1d5db;
  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: var(--seller-surface-soft);
  border: 1px solid var(--seller-border);
  border-radius: 15px;
  color: var(--seller-text);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

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

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

/* Botón principal */
.btn-login {
  width: 100%;
  padding: 15px;
  background: linear-gradient(
    135deg,
    var(--seller-primary) 0%,
    var(--seller-primary-hover) 100%
  );
  color: var(--seller-text);
  border: none;
  border-radius: 15px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
  letter-spacing: 1px;
  animation: slideInUp 0.8s ease-out 0.3s backwards;
  margin-top: 30px;
}

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

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

/* Opciones */
.login-options {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  animation: slideInUp 0.8s ease-out 0.4s backwards;
  flex-wrap: nowrap; /* mantener en una sola línea */
  justify-content: flex-start;
}

/* El checkbox y su texto no deben crecer; se mantienen compactos */
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--seller-text-muted);
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Link que puede ocupar varias líneas dentro de su propia caja */
.forgot-password {
  display: inline-block;
  margin-left: 8px;
  color: #93c5fd;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 500;
  white-space: normal;
  max-width: 48%;
  text-align: right;
  word-break: break-word;
  align-self: center;
}

.forgot-password:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

/* En pantallas pequeñas: mantener en la misma línea y ajustar anchos para permitir salto interno */
@media (max-width: 480px) {
  .login-options {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .remember-me {
    flex: 0 0 auto;
  }

  .forgot-password {
    max-width: 60%;
    font-size: 0.95rem;
    margin-left: 6px;
  }
}

/* Variante extra estrecha: aumentar la posibilidad de salto y reducir tamaño si hace falta */
@media (max-width: 360px) {
  .login-options {
    gap: 10px;
  }

  .remember-me {
    padding-right: 6px;
  }

  .forgot-password {
    max-width: 65%;
    font-size: 0.92rem;
  }
}

.remember-me input[type='checkbox'] {
  cursor: pointer;
  accent-color: var(--seller-primary);
}

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

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.28);
}

.divider span {
  padding: 0 15px;
  color: var(--seller-text-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Botones de acceso alternativo */
.alternative-access-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
  animation: slideInUp 0.8s ease-out 0.6s backwards;
}

.btn-access {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1.5px solid;
  cursor: pointer;
}

.btn-buyer {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(37, 99, 235, 0.1) 100%
  );
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.btn-buyer:hover {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.25) 0%,
    rgba(37, 99, 235, 0.2) 100%
  );
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
}

.btn-affiliate {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15) 0%,
    rgba(22, 163, 74, 0.1) 100%
  );
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.btn-affiliate:hover {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.25) 0%,
    rgba(22, 163, 74, 0.2) 100%
  );
  border-color: rgba(34, 197, 94, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.2);
}

/* Botón Gmail */
.btn-gmail {
  width: 100%;
  padding: 14px;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid var(--seller-border);
  border-radius: 15px;
  color: var(--seller-text);
  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-gmail:hover {
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.24);
  border: 1px solid rgba(59, 130, 246, 0.45);
}

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

/* Registro */
.login-register {
  text-align: center;
  margin-top: 25px;
  color: var(--seller-text-muted);
  font-size: 0.95rem;
  animation: slideInUp 0.8s ease-out 0.7s backwards;
}

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

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

/* Notificación toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  padding: 16px 24px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: slideInRight 0.4s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Modal centrado igual que signup.html */
.modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hidden {
  display: none;
}
.captcha-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px auto;
}

.captcha-wrapper .h-captcha {
  width: 304px;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 420px) {
  .captcha-wrapper {
    justify-content: center;
  }

  .captcha-wrapper .h-captcha {
    max-width: 260px;
    margin-right: 42px;
  }
}

/* Ajustes responsive para móviles: subir la tarjeta un poco */
@media (max-width: 640px) {
  .login-container {
    /* En móviles alineamos al inicio y damos espacio superior razonable */
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .glass-card {
    /* Anulamos margen superior y reducimos padding para que la tarjeta esté más arriba */
    margin-top: 0;
    padding: 28px;
    max-width: 92%;
  }

  .login-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .login-subtitle {
    margin-bottom: 20px;
  }
}

.seller-inline-1 {
  position: relative;
}

.seller-inline-2 {
  padding-right: 42px;
}

.seller-inline-3 {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  fill: #93c5fd;
}

.seller-inline-4 {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  fill: #93c5fd;
  display: none;
}

.seller-inline-5 {
  background: linear-gradient(135deg, #0b1220 0%, #1e293b 100%);
  color: #fff;
  box-shadow: 0 0 32px 0 #1e293bcc;
  border: 2px solid #3b82f6;
  border-radius: 18px;
  margin: 32px;
  padding: 32px 24px;
}

.seller-inline-6 {
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.seller-inline-7 {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 0.75rem;
  color: var(--seller-text-muted);
  background: rgba(15, 23, 42, 0.75);
  padding: 6px 12px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
  z-index: 10;
  border: 1px solid var(--seller-border);
}
