/* Auth pages (log in, sign up, forgot/reset password, set password), Get a Pass,
   and the account pages (edit profile, player profile). Design: "Log in", "Sign up",
   "Forgot password", "Get a Pass". */

/* ---------- Auth header tweaks (auth layout only) ---------- */

/* The design pushes the single header link/button to the right, in DM Mono for back links. */
body.gtf--auth .gtf-header__actions {
  margin-left: auto;
}

body.gtf.gtf--auth .gtf-header__back {
  font-family: var(--gtf-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--gtf-text-3);

  &:hover {
    color: var(--gtf-cream);
  }
}

/* ---------- Two-column auth frame ---------- */

.gtf-auth {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  padding-top: 24px;

  & [hidden] {
    display: none !important;
  }
}

.gtf-auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: 320px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--gtf-radius-card);
  background: var(--gtf-yellow);
  color: var(--gtf-ink);

  body.gtf & a:not(.gtf-btn) {
    color: var(--gtf-ink);
    text-decoration: underline;
  }
}

.gtf-auth__panel--pink { background: var(--gtf-pink); }
.gtf-auth__panel--teal { background: var(--gtf-teal); }

.gtf-auth__title {
  margin: 0 0 16px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.gtf-auth__lede {
  max-width: 20em;
  font-size: 19px;
  line-height: 1.5;
}

.gtf-auth__lede--wide {
  max-width: 22em;
}

.gtf-auth__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 440px;
  padding: clamp(0px, 2vw, 24px) 0;
}

.gtf-auth__link {
  align-self: flex-start;
  font-size: 15px;
  font-weight: 600;
}

.gtf-auth__alt {
  margin-top: 8px;
  font-size: 16px;
  color: var(--gtf-text-2);

  & a {
    font-weight: 700;
  }
}

/* ---------- Get a Pass ---------- */

.gtf-pass__panel {
  min-height: 340px;
}

.gtf-pass__desc {
  margin-bottom: 24px;
}

.gtf-pass__price {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.gtf-pass__flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 460px;
}

.gtf-pass__progress {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  font-family: var(--gtf-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gtf-line);

  & li {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  & li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px currentColor;
  }

  & li[aria-current="step"] {
    color: var(--gtf-yellow);
  }

  & li[aria-current="step"]::before {
    background: currentColor;
  }
}

.gtf-pass__step,
.gtf-pass__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.gtf-pass__options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.gtf-pass__step-label {
  padding: 0;
  font-family: var(--gtf-mono);
  font-size: 14px;
  color: var(--gtf-text-3);

  &:focus {
    outline: none;
  }

  &:focus-visible {
    outline: 3px solid var(--gtf-yellow);
    outline-offset: 2px;
  }
}

.gtf-pass-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 2px solid var(--gtf-surface-4);
  border-radius: var(--gtf-radius-card);
  background: var(--gtf-ink);
  color: var(--gtf-cream);
  cursor: pointer;
  transition: border-color 0.15s;

  &:hover {
    border-color: var(--gtf-line);
  }

  & input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  &:has(input:focus-visible) {
    outline: 3px solid var(--gtf-yellow);
    outline-offset: 2px;
  }
}

.gtf-pass-option__dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--gtf-line);
}

.gtf-pass-option:has(input:checked) .gtf-pass-option__dot {
  background: var(--gtf-yellow);
  box-shadow: inset 0 0 0 2px var(--gtf-yellow);
}

.gtf-pass-option__body {
  flex: 1;
  min-width: 0;
}

.gtf-pass-option__name {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.gtf-pass-option__sub {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: var(--gtf-text-2);
}

.gtf-pass-option__price {
  font-size: 22px;
  font-weight: 900;
}

.gtf-pass__note {
  font-size: 15px;
  line-height: 1.5;
  color: var(--gtf-text-2);

  & a {
    font-weight: 700;
  }

  & strong {
    color: var(--gtf-cream);
  }
}

.gtf-pass__back {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gtf-text-2);
  font-family: var(--gtf-font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;

  &:hover {
    color: var(--gtf-cream);
  }
}

.gtf-pass__slot {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 24px;
  border: 2px dashed var(--gtf-surface-4);
  border-radius: var(--gtf-radius-input);
  font-family: var(--gtf-mono);
  font-size: 14px;
  color: var(--gtf-text-3);
  text-align: center;
}

.gtf-pass__soon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* ---------- Account pages (edit profile, player profile) ---------- */

.gtf-account {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 720px;
}

.gtf-account__lede {
  margin-top: 10px;
}

.gtf-account__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gtf-account__card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gtf-account__actions {
  padding-top: 4px;
}

.gtf-account-grid {
  display: grid;
  gap: 24px;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);

  @media (min-width: 900px) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
}

.gtf-account-profile__id {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  text-align: center;
  overflow-wrap: anywhere;
}

.gtf-account-facts {
  margin: 0;

  & dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
  }
}

.gtf-account-facts__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 2px solid var(--gtf-surface-3);

  &:last-child {
    border-bottom: 0;
  }

  & dt {
    font-family: var(--gtf-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gtf-text-3);
  }
}

.gtf-account-facts__coins {
  color: var(--gtf-yellow);
}

.gtf-account-facts__ok {
  color: var(--gtf-success);
}

.gtf-account-history__heading {
  margin-bottom: 18px;
}

.gtf-account-history__row {
  align-items: flex-start;
}

.gtf-account-history__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 4px;
}
