/* =============================================================================
   TRACKORIGIN · AUTH PAGES
   Login / Signup only.
   ============================================================================= */

.main {
  background: var(--navy);
}

/* --------------------------------------------------------------------------
   SHARED
   -------------------------------------------------------------------------- */

.auth-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.auth-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--blue-bright);
  vertical-align: middle;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   SIGNUP CONVERSION PAGE
   -------------------------------------------------------------------------- */

.auth-signup {
  min-height: calc(100vh - 88px);
  padding: clamp(30px, 4vw, 54px) 0 clamp(42px, 5vw, 70px);
  background:
    radial-gradient(ellipse 52% 42% at 78% 18%, rgba(45, 85, 184, 0.20), transparent 62%),
    radial-gradient(ellipse 36% 36% at 14% 86%, rgba(45, 85, 184, 0.08), transparent 60%),
    var(--navy);
  border-bottom: 1px solid var(--navy-line);
}

.auth-signup__shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 500px minmax(0, 1fr);
  gap: clamp(46px, 6vw, 92px);
  align-items: start;
}

.auth-signup__form-card {
  background:
    linear-gradient(180deg, rgba(19, 28, 68, 0.98), rgba(8, 17, 42, 0.98));
  border: 1px solid var(--navy-line-hi);
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.28);
  padding: clamp(24px, 2.6vw, 34px);
}

.auth-signup__form-head {
  margin-bottom: 20px;
}

.auth-signup__form-head h1 {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(42px, 4.2vw, 60px);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--cream);
}

.auth-signup__form-head p {
  margin: 12px 0 0;
  color: var(--cream-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   RIGHT CONVERSION SIDE
   -------------------------------------------------------------------------- */

.auth-signup__side {
  padding-top: clamp(10px, 2vw, 28px);
}

.auth-signup__title {
  margin-top: 22px;
  max-width: 620px;
  font-size: clamp(76px, 8.4vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.018em;
}

.auth-signup__lede {
  max-width: 660px;
  margin-top: 28px;
  color: var(--cream-muted);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.6;
}

.auth-signup__proof {
  max-width: 660px;
  margin-top: clamp(30px, 4vw, 46px);
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--navy-line);
}

.auth-signup__proof div {
  padding: 18px 22px;
  border-bottom: 1px solid var(--navy-line);
  background: rgba(255, 255, 255, 0.014);
}

.auth-signup__proof div:last-child {
  border-bottom: none;
}

.auth-signup__proof span {
  display: block;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--blue-bright);
}

.auth-signup__proof strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--cream);
}

.auth-signup__proof p {
  margin: 8px 0 0;
  color: var(--cream-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   SIMPLE LOGIN PAGE
   -------------------------------------------------------------------------- */

.auth-login-simple {
  min-height: calc(100vh - 88px);
  padding: clamp(64px, 8vw, 110px) 22px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background:
    radial-gradient(ellipse 44% 36% at 50% 16%, rgba(45, 85, 184, 0.18), transparent 64%),
    var(--navy);
}

.auth-login-simple__card {
  width: 100%;
  max-width: 500px;
  padding: clamp(30px, 4vw, 44px);
  background:
    linear-gradient(180deg, rgba(19, 28, 68, 0.98), rgba(9, 18, 44, 0.98));
  border: 1px solid var(--navy-line-hi);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
}

.auth-login-simple__head {
  margin-bottom: 30px;
}

.auth-login-simple__title {
  margin-top: 18px;
  font-size: clamp(52px, 7vw, 76px);
  line-height: 0.9;
}

.auth-login-simple__head p {
  margin-top: 14px;
  color: var(--cream-muted);
  font-size: 16px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   ALERTS
   -------------------------------------------------------------------------- */

.auth-alert {
  display: none;
  margin-bottom: 16px;
  padding: 13px 15px;
  border: 1px solid var(--navy-line-hi);
  background: var(--navy-deep);
  color: var(--cream-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-alert:not(:empty) {
  display: block;
}

/* --------------------------------------------------------------------------
   FORM
   -------------------------------------------------------------------------- */

.auth-form {
  display: block;
}

.auth-field {
  margin-bottom: 15px;
}

.auth-field label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
}

.auth-field label span {
  color: var(--cream-dim);
  font-weight: 400;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  background: #050b1e;
  border: 1px solid rgba(245, 239, 224, 0.24);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--body);
  font-size: 15px;
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.28),
    0 0 0 0 rgba(58, 108, 217, 0);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.auth-field input::placeholder {
  color: rgba(245, 239, 224, 0.38);
}

.auth-field input:focus {
  background: #030817;
  border-color: var(--blue-bright);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.36),
    0 0 0 3px rgba(58, 108, 217, 0.22);
}

.auth-field__help,
.field-help {
  margin-top: 6px;
  color: var(--cream-dim);
  font-size: 12.5px;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   CHECKBOX
   -------------------------------------------------------------------------- */

.auth-checkbox {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 2px 0 18px;
  color: var(--cream-muted);
  font-size: 13.5px;
  line-height: 1.45;
  cursor: pointer;
}

.auth-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue-bright);
}

.auth-checkbox a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-consent-foot {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--cream-muted);
  border-top: 1px solid rgba(245, 239, 224, 0.08);
  padding-top: 12px;
}

.auth-consent-foot a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-consent-foot strong {
  color: var(--cream);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   SUBMIT
   -------------------------------------------------------------------------- */

/*
   Keep real button text visible.
   Do not use pseudo-element labels here.
*/

.auth-submit::before,
.auth-submit::after {
  content: none !important;
  display: none !important;
}

.auth-form button.auth-submit,
button.auth-submit,
.auth-submit {
  width: 100%;
  min-height: 54px;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  padding: 15px 22px;
  background: #345fc4 !important;
  border: 1px solid #4f78df !important;
  border-radius: var(--radius);

  color: #f5efe0 !important;
  -webkit-text-fill-color: #f5efe0 !important;

  font-family: var(--mono);
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;

  cursor: pointer;
  white-space: nowrap;
  opacity: 1 !important;
  visibility: visible !important;

  appearance: none;
  -webkit-appearance: none;

  box-shadow:
    0 14px 34px rgba(45, 85, 184, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);

  transition:
    transform 0.12s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.auth-form button.auth-submit:hover,
button.auth-submit:hover,
.auth-submit:hover {
  transform: translateY(-1px);
  background: #274aa3 !important;
  border-color: #6f92f2 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow:
    0 18px 42px rgba(45, 85, 184, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.auth-form button.auth-submit:active,
button.auth-submit:active,
.auth-submit:active {
  transform: translateY(0);
  background: #1f3d8a !important;
  border-color: #557ce4 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.auth-form button.auth-submit:focus-visible,
button.auth-submit:focus-visible,
.auth-submit:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(58, 108, 217, 0.34),
    0 14px 34px rgba(45, 85, 184, 0.34);
}

.auth-form button.auth-submit:disabled,
button.auth-submit:disabled,
.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.65 !important;
  transform: none;
}

.auth-form button.auth-submit.is-loading,
button.auth-submit.is-loading,
.auth-submit.is-loading {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   CARD FOOTER
   -------------------------------------------------------------------------- */

/* Secondary action under a field (e.g. "Forgot your password?") — right-
   aligned, quiet until hovered, so it doesn't compete with the submit. */
.auth-field-aux {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 4px;
  font-size: 13px;
}

.auth-field-aux a {
  color: var(--cream-dim);
  text-decoration: none;
}

.auth-field-aux a:hover {
  color: var(--blue-bright);
}

.auth-card__footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--navy-line);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--cream-dim);
  font-size: 14px;
}

.auth-card__footer a {
  color: var(--blue-bright);
  text-decoration: none;
}

.auth-card__footer a:hover {
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media (max-width: 1060px) {
  .auth-signup__shell {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .auth-signup__form-card {
    order: 1;
  }

  .auth-signup__side {
    order: 2;
    padding-top: 10px;
  }

  .auth-signup__title {
    font-size: clamp(62px, 13vw, 104px);
  }

  .auth-signup__proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .auth-signup {
    padding-top: 34px;
  }

  .auth-signup__shell {
    padding-left: 22px;
    padding-right: 22px;
  }

  .auth-signup__form-card {
    padding: 24px;
  }

  .auth-signup__form-head h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .auth-signup__title {
    font-size: clamp(54px, 16vw, 82px);
  }

  .auth-login-simple {
    padding-top: 46px;
  }

  .auth-login-simple__card {
    padding: 24px;
  }
}