/* Viverea — Premium Auth Modals (Landing Page only) */

#authView.landing-page ~ #loginModal.modal,
#authView.landing-page ~ #trialModal.modal {
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}

#authView.landing-page ~ #loginModal .modal-content,
#authView.landing-page ~ #trialModal .modal-content {
  max-width: 440px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 22, 24, 0.88);
  backdrop-filter: blur(40px) saturate(160%);
  -webkit-backdrop-filter: blur(40px) saturate(160%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(41, 151, 255, 0.06);
  animation: lpAuthIn 0.38s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#authView.landing-page ~ #loginModal .modal-header,
#authView.landing-page ~ #trialModal .trial-modal-header {
  padding: 1.35rem 1.5rem 0;
  border-bottom: none;
}

#authView.landing-page ~ #loginModal .modal-header h2,
#authView.landing-page ~ #trialModal .trial-modal-header h2 {
  font-family: "Inter Tight", "Inter", system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

#authView.landing-page ~ #loginModal .close,
#authView.landing-page ~ #trialModal .close {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, color 0.2s ease;
}

#authView.landing-page ~ #loginModal .close:hover,
#authView.landing-page ~ #trialModal .close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#authView.landing-page ~ #loginModal .login-tabs {
  margin: 1.25rem 1.5rem 0;
  padding: 0.25rem;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: none;
}

#authView.landing-page ~ #loginModal .login-tab {
  flex: 1;
  margin-bottom: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 980px;
  border-bottom: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, color 0.2s ease;
}

#authView.landing-page ~ #loginModal .login-tab:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

#authView.landing-page ~ #loginModal .login-tab.active {
  color: #000;
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f7 100%);
  border-bottom-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#authView.landing-page ~ #loginModal form,
#authView.landing-page ~ #trialModal .trial-auth-form {
  padding: 1.35rem 1.5rem 1.5rem;
}

#authView.landing-page ~ #loginModal .form-group label,
#authView.landing-page ~ #trialModal .form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

#authView.landing-page ~ #loginModal .form-group input,
#authView.landing-page ~ #loginModal .form-group select,
#authView.landing-page ~ #trialModal .form-group input {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.05);
  color: #f5f5f7;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#authView.landing-page ~ #loginModal .form-group input:focus,
#authView.landing-page ~ #loginModal .form-group select:focus,
#authView.landing-page ~ #trialModal .form-group input:focus {
  outline: none;
  border-color: rgba(41, 151, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.15);
}

#authView.landing-page ~ #loginModal .btn-primary,
#authView.landing-page ~ #trialModal .btn-primary,
#authView.landing-page ~ #loginModal #registerNextBtn,
#authView.landing-page ~ #loginModal #registerSubmitBtn {
  border-radius: 980px;
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff 0%, #f2f2f7 100%);
  color: #000;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

#authView.landing-page ~ #loginModal .btn-primary:hover,
#authView.landing-page ~ #trialModal .btn-primary:hover {
  background: #fff;
}

#authView.landing-page ~ #loginModal .btn-secondary,
#authView.landing-page ~ #trialModal .btn-secondary {
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
}

#authView.landing-page ~ #trialModal .trial-subheadline {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

@keyframes lpAuthIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #authView.landing-page ~ #loginModal .modal-content,
  #authView.landing-page ~ #trialModal .modal-content {
    animation: none;
  }
}
