* {
  scroll-behavior: smooth;
}

body {
  /* [DISEÑO BUYER - NUEVO] Fondo Corporativo Profundo (Navy/Deep Blue) */
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

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

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

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

.parallax-shape {
  position: absolute;
  border-radius: 50%;
  /* Opacidad baja para que se sienta premium */
  opacity: 0.1;
  /* [DISEÑO BUYER - NUEVO] Color Azul Cielo para acentos (Confianza) */
  background: #60a5fa;
}

/* Formas de ejemplo (manteniendo las clases base) */
.shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
}
.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  right: -50px;
}
.shape-3 {
  display: none;
} /* Ocultar la tercera forma si no se usa */

@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 */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Glassmorphism Card (Mismo estilo que Affiliate) */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  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: 500px;
  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ítulo (Mismo estilo que Affiliate) */
.login-title {
  color: white;
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 5px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.login-subtitle {
  color: #e5e7eb; /* Blanco Grisáceo */
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Inputs mejorados (Mismo estilo que Affiliate, solo cambia el color de foco) */
.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: #ffffff;
  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.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  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.5);
}

.input-group input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  /* [DISEÑO BUYER - NUEVO] Focus color Azul Cielo (Confianza) */
  border: 1px solid #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2);
  transform: translateY(0);
}

.btn-login {
  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(76, 175, 80, 0.3);
}

.btn-login:hover {
  transform: translateY(-2px);
  background: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
.btn-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Opciones (Mismo estilo que Affiliate, solo cambia el color de link) */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.95rem;
  animation: slideInUp 0.8s ease-out 0.4s backwards;
  color: #e5e5e5;
}

.forgot-password {
  /* [DISEÑO BUYER - NUEVO] Azul Cielo llamativo (Confianza/Link) */
  color: #60a5fa;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-weight: 600;
}

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

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
}

.remember-me input[type='checkbox'] {
  cursor: pointer;
  /* [DISEÑO BUYER - NUEVO] Accent color Azul */
  accent-color: #60a5fa;
}

/* Divisor (Igual que Affiliate) */
.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(255, 255, 255, 0.2);
}

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

/* Botón Social */
.btn-gmail {
  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(76, 175, 80, 0.3);
}

.btn-gmail: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(76, 175, 80, 0.4);
  /* CAMBIO: Eliminamos el cambio de borde, ya que no tiene borde base */
  border: none;
}

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

/* 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.7s 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-seller {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.15) 0%,
    rgba(217, 119, 6, 0.1) 100%
  );
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.btn-seller:hover {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.25) 0%,
    rgba(217, 119, 6, 0.2) 100%
  );
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.2);
}

.btn-affiliate-alt {
  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-alt: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);
}

/* Registro (Mismo estilo que Affiliate, solo cambia el color de link) */
.login-register {
  text-align: center;
  margin-top: 25px;
  color: #e5e7eb;
  font-size: 1rem;
  animation: slideInUp 0.8s ease-out 0.7s backwards;
}

.login-register a {
  /* [DISEÑO BUYER - NUEVO] Azul Cielo llamativo (Confianza/Link) */
  color: #60a5fa;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

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

/* TOAST */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  animation: slideInRight 0.4s ease-out;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.toast.success {
  background-color: #22c55e;
}

.toast.error {
  background-color: #ef4444; /* rojo error */
  color: #ffffff;
}

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

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.toast.warning {
  background-color: #fbbf24; /* MISMO amarillo corporativo */
  color: #1e293b;
}

.login-password-wrapper {
  position: relative;
}

.login-input-with-eye {
  padding-right: 42px;
}

.login-eye-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  fill: rgba(255, 255, 255, 0.75);
}

.login-eye-icon-hidden {
  display: none;
}

.login-captcha-wrapper {
  display: flex;
  justify-content: center;
  transform: scale(1.15);
  transform-origin: center;
}

.login-version-display {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
  z-index: 10;
}
