/* Premium auth — fixed viewport, UX Pacific branding */
html.auth-premium-root,
html:has(body.auth-premium-page) {
  height: 100%;
  overflow: hidden;
}

.auth-premium-page {
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #08080c;
  color: #fff;
}

.auth-premium-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(109, 61, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(255, 255, 255, 0.04), transparent 50%),
    #08080c;
}

.auth-premium-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: url('../img/auth-bg.png') center / cover no-repeat; */
  opacity: 0.5;
  filter: saturate(0.8) brightness(0.42);
}

.auth-premium-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.4) 0%, rgba(8, 8, 12, 0.82) 50%, rgba(8, 8, 12, 0.95) 100%);
}

.auth-premium-wrap {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  height: 100%;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.auth-premium-card {
  width: 100%;
  max-width: 400px;
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
}

.auth-premium-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.auth-premium-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.auth-premium-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.auth-premium-logo-fallback {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.auth-premium-title {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.auth-premium-form {
  display: flex;
  flex-direction: column;
}

.auth-premium-field {
  position: relative;
  margin-bottom: 14px;
}

.auth-premium-field input {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 44px 0 14px;
  font: inherit;
  font-size: 1rem;
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-premium-field input::placeholder {
  color: #6b7280;
}

.auth-premium-field input:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.auth-premium-field input:focus {
  border-color: #6d3dff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(109, 61, 255, 0.22);
}

.auth-premium-field label {
  position: absolute;
  left: 12px;
  top: -9px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  background: #0c0c10;
  pointer-events: none;
  z-index: 1;
}

.auth-premium-field--password input {
  padding-right: 48px;
}

.auth-premium-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.auth-premium-toggle:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.06);
}

.auth-premium-toggle svg {
  width: 20px;
  height: 20px;
}

.auth-premium-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 14px;
  font-size: 0.8125rem;
}

.auth-premium-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  cursor: pointer;
  user-select: none;
}

.auth-premium-check input {
  width: 16px;
  height: 16px;
  accent-color: #6d3dff;
  cursor: pointer;
}

.auth-premium-link {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.auth-premium-link:hover {
  color: #c4b5fd;
}

.auth-premium-btn {
  width: 100%;
  height: 46px;
  margin-top: 2px;
  border: none;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: #6d3dff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.auth-premium-btn:hover:not(:disabled) {
  background: #5b2ee6;
  box-shadow: 0 8px 24px rgba(109, 61, 255, 0.35);
}

.auth-premium-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.auth-premium-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-premium-google {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f3f4f6;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-premium-google:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.auth-premium-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

.auth-premium-footer a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.auth-premium-footer a:hover {
  color: #c4b5fd;
}

.auth-premium-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 14px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #9ca3af;
}

.auth-premium-terms input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #6d3dff;
}

.auth-premium-terms a {
  color: #a78bfa;
  text-decoration: none;
}

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

.auth-premium-intro {
  margin: 0 0 18px;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.45;
}

.auth-premium-alert {
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.auth-premium-alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.auth-premium-alert--success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}

.auth-premium-field .field-error-modern,
.auth-premium-field .field-error {
  display: none;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #f87171;
}

.auth-premium-field .field-error-modern:not(:empty),
.auth-premium-field .field-error:not(:empty) {
  display: block;
}

.auth-premium-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.auth-premium-modal-panel {
  width: 100%;
  max-width: 380px;
  padding: 28px 24px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.auth-premium-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.auth-premium-modal-panel h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.auth-premium-modal-panel p {
  margin: 0 0 20px;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Short screens: tighten so the page stays non-scrollable */
@media (max-height: 720px) {
  .auth-premium-brand {
    margin-bottom: 12px;
  }

  .auth-premium-title {
    margin-bottom: 16px;
    font-size: clamp(24px, 7vw, 36px);
    letter-spacing: -0.01em;
  }

  .auth-premium-field {
    margin-bottom: 11px;
  }

  .auth-premium-field input {
    height: 44px;
  }

  .auth-premium-footer {
    margin-top: 14px;
  }

  .auth-premium-terms {
    margin-bottom: 11px;
  }
}

@media (max-width: 480px) {
  .auth-premium-wrap {
    padding: 12px;
  }

  .auth-premium-logo {
    height: 28px;
  }
}
