/* The Free Product Tour form — DESIGN-REFERENCE.md §4. Two-step progressive form:
   step 1 asks almost nothing so people start, step 2 asks the qualifying detail. */

.form-page {
  max-width: 560px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-color-muted);
}

.step-indicator__step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-indicator__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E2E8F0;
  color: var(--text-color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.step-indicator__step.is-active .step-indicator__dot {
  background: var(--accent-primary);
  color: #0F172A;
}

.step-indicator__step.is-active {
  color: var(--text-color);
}

.step-indicator__line {
  flex: 1;
  height: 1px;
  background: #E2E8F0;
  max-width: 60px;
}

.form-step h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 8px;
}

.form-step__sub {
  color: var(--text-color-muted);
  margin: 0 0 24px;
}

.form-benefits {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.form-benefits li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-color);
}

.form-benefits__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-color);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  border: 1px solid #CBD5E1;
  border-radius: var(--radius);
  background: var(--surface-white);
  color: var(--text-color);
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 1px;
}

.field--invalid input,
.field--invalid select {
  border-color: #DC2626;
}

.field__error {
  display: none;
  color: #DC2626;
  font-size: 13px;
  margin-top: 6px;
}

.field--invalid .field__error {
  display: block;
}

.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field--checkbox input {
  margin-top: 3px;
}

.field--checkbox label {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-color-muted);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.form-back-link {
  font-size: 14px;
  color: var(--text-color-muted);
  text-decoration: none;
}

.form-back-link:hover {
  color: var(--text-color);
}

.form-privacy-note {
  font-size: 13px;
  color: var(--text-color-muted);
  margin-top: 24px;
  line-height: 1.5;
}

.form-privacy-note a {
  color: var(--text-color-muted);
}

/* honeypot: hidden from real visitors, still reachable by bots that auto-fill every field */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ---- login page ----
   Deliberately a heavier card treatment (larger radius, layered shadow)
   than the rest of the site's flatter 4px marketing-page components --
   this is meant to read as "signing into an application," not another
   content page. Real auth isn't built yet: see login.js. */

.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 720px;
  padding: 96px 0;
  /* Soft branded glow on the page background, echoing the dark-band
     treatment used elsewhere, subtle enough to sit behind a white card. */
  background-image: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.08), transparent 55%);
}

.login-card {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  background: var(--surface-white);
  border-radius: 20px;
  box-shadow:
    0 24px 48px -12px rgba(15, 23, 42, 0.18),
    0 8px 20px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  padding: 48px 40px 40px;
  text-align: center;
  overflow: hidden;
}

/* A thin brand-accent bar across the top of the card -- the same signature
   teal used for the 40x5 rule elsewhere, scaled up to a full-width edge. */
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), #0E7490);
}

.login-card__logo {
  display: inline-block;
  margin-bottom: 28px;
}

.login-card__logo img {
  display: block;
  margin: 0 auto;
}

.login-card__eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0E7490;
  margin: 0 0 8px;
}

.login-card__heading {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--surface-dark);
  margin: 0 0 10px;
}

.login-card__subtext {
  font-size: 15px;
  color: var(--text-color-muted);
  margin: 0 0 32px;
  line-height: 1.5;
}

.login-card form {
  text-align: left;
}

.login-card__row {
  text-align: right;
  margin: -8px 0 24px;
}

.login-card__forgot {
  font-size: 13px;
  color: var(--text-color-muted);
  text-decoration: none;
}

.login-card__forgot:hover,
.login-card__forgot:focus-visible {
  color: var(--accent-primary);
}

.login-card__submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 15px;
  padding: 13px 20px;
}

.login-card__submit-spinner {
  display: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(15, 23, 42, 0.3);
  border-top-color: #0F172A;
  border-radius: 50%;
  animation: login-spin 0.7s linear infinite;
}

.login-card__submit.is-loading .login-card__submit-spinner {
  display: inline-block;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .login-card__submit-spinner {
    animation: none;
  }
}

.login-card__legal {
  margin: 20px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-color-muted);
  text-align: center;
}

.login-card__legal a {
  color: var(--text-color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-card__legal a:hover,
.login-card__legal a:focus-visible {
  color: var(--accent-primary);
}

.login-card__note {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
  font-size: 13.5px;
  color: var(--text-color-muted);
  text-align: center;
}

@media (max-width: 599px) {
  .login-section {
    padding: 56px 0;
    min-height: 0;
  }

  .login-card {
    padding: 36px 24px 32px;
    border-radius: 16px;
  }

  .login-card__heading {
    font-size: 26px;
  }
}

.form-error-banner {
  display: none;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 24px;
}

.form-error-banner.is-visible {
  display: block;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
