* {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #1a202c 0%, #065f46 100%);
  min-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 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: 18px;
}

.parallax-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #4ade80;
  filter: blur(10px);
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
}
.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  right: -50px;
}
.shape-3 {
  display: none;
}

@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 - responsive */
.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Título */
.login-title {
  color: white;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  letter-spacing: -0.6px;
}

.login-subtitle {
  color: #d1d5db;
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.98rem;
  font-weight: 500;
}

/* Inputs mejorados */
.input-group {
  margin-bottom: 18px;
  position: relative;
  animation: fadeInScale 0.5s ease-out backwards;
}
.input-group:nth-child(2) {
  animation-delay: 0.05s;
}
.input-group:nth-child(3) {
  animation-delay: 0.1s;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.input-group label {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  display: block;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: white;
  font-size: 0.98rem;
  transition: all 0.22s 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.08);
  border: 1px solid #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.08);
}

/* Eye icons container adjustments */
#eyeOpen,
#eyeClosed {
  width: 20px;
  height: 20px;
}

/* Botón Principal */
.btn-login {
  width: 100%;
  padding: 12px;
  background: #45a049;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  margin-top: 20px;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(76, 175, 80, 0.22);
}
.btn-login:hover {
  transform: translateY(-2px);
  background: #4caf50;
  box-shadow: 0 10px 28px rgba(76, 175, 80, 0.28);
}
.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Opciones */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.92rem;
  color: #e5e5e5;
}
.forgot-password {
  color: #4ade80;
  text-decoration: none;
  font-weight: 600;
}
.forgot-password:hover {
  color: #86efac;
  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;
  accent-color: #4ade80;
}

/* Divisor */
.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.divider span {
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Botón Social */
.btn-gmail {
  width: 100%;
  padding: 12px;
  background: #45a049;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(76, 175, 80, 0.22);
}
.btn-gmail:hover {
  background: #4caf50;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(76, 175, 80, 0.28);
}
.gmail-icon {
  width: 18px;
  height: 18px;
}

/* 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-buyer-alt {
  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-alt: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);
}

.login-register {
  text-align: center;
  margin-top: 18px;
  color: #e5e7eb;
  font-size: 0.96rem;
}
.login-register a {
  color: #4ade80;
  text-decoration: none;
  font-weight: 700;
}
.login-register a:hover {
  color: #86efac;
  text-decoration: underline;
}

/* TOAST*/
.toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  padding: 12px 18px;
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  animation: slideInRight 0.35s ease-out;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}
.toast.success {
  background-color: #10b981;
}
.toast.error {
  background-color: #f59e0b;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .glass-card {
    padding: 20px;
    border-radius: 14px;
    margin: 12px;
  }
  .login-title {
    font-size: 1.5rem;
  }
  .login-subtitle {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }
  .input-group input {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
  .btn-login,
  .btn-gmail {
    padding: 10px;
    font-size: 0.95rem;
    border-radius: 8px;
  }
  .parallax-shape {
    display: none;
  }
  .divider span {
    padding: 0 8px;
  }
  .login-container {
    padding: 12px;
  }
  .gmail-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 420px) {
  .glass-card {
    padding: 16px;
  }
  .login-title {
    font-size: 1.3rem;
  }
  .login-subtitle {
    font-size: 0.9rem;
  }
  .input-group label {
    font-size: 0.88rem;
  }
  .divider {
    margin: 14px 0;
  }
}

/* hCaptcha responsive handling */
.captcha-wrap {
  display: flex;
  justify-content: center;
  transform-origin: center;
}
.captcha-wrap .h-captcha {
  transform: scale(1);
}

/* Larger screens: slightly scale up the widget for aesthetics */
@media (min-width: 768px) {
  .captcha-wrap .h-captcha {
    transform: scale(1.15);
  }
}

/* Medium screens: keep normal scale */
@media (max-width: 767px) and (min-width: 421px) {
  .captcha-wrap .h-captcha {
    transform: scale(0.95);
  }
}

/* Small screens: reduce scale to avoid overflow */
@media (max-width: 420px) {
  .captcha-wrap .h-captcha {
    transform: scale(0.82);
  }
}

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

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

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

.affiliate-inline-4 {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  fill: rgba(255, 255, 255, 0.75);
  display: none;
}

.affiliate-inline-5 {
  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;
}
