.league-redesign .site-main:has(.auth-entry) {
  min-height: min(690px,calc(100vh - 185px));
  padding-block: clamp(22px,3.35vw,48px) 58px;
}

.league-redesign:has(.auth-entry) .header-actions :is(a[href="/login"],a[href="/register"]) {
  display: none;
}

.auth-entry {
  --entry-ink: hsl(var(--foreground));
  --entry-muted: hsl(var(--muted));
  --entry-border: hsl(var(--border));
  --entry-surface: hsl(var(--surface));
  --entry-accent: hsl(var(--primary));
  width: min(100%, 1050px);
  margin-inline: auto;
  color: var(--entry-ink);
}
.auth-entry h1, .auth-entry h2, .auth-entry p, .auth-entry form { margin: 0; }
.auth-entry h1 {
  font: 800 clamp(34px,3.65vw,54px)/1.08 var(--display);
  letter-spacing: -.04em;
}
.auth-entry a:not(.auth-entry-back, .auth-entry-alternatives a) {
  color: var(--entry-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-entry a:hover { color: var(--entry-accent); }
.auth-entry-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: var(--entry-accent);
  font-size: 13px;
  font-weight: 700;
}
.auth-entry-back:hover { text-decoration: underline; }
.auth-entry-columns {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  max-width: 537px;
  gap: 25px clamp(26px,7vw,100px);
  margin-block-start: clamp(9px,1.15vw,17px);
}
.auth-entry-providers .auth-entry-columns {
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
  max-width: none;
  align-items: start;
}
.auth-entry .auth-entry-switch { margin-block-start: 9px; color: var(--entry-muted); }
.auth-entry .auth-entry-form { display: grid; gap: 14px; margin-block-start: clamp(19px,1.7vw,24px); }
.auth-entry-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.auth-entry-field { min-width: 0; }
.auth-entry-field label { font-size: 14px; font-weight: 700; }
.auth-entry-field label small { color: var(--entry-muted); font-weight: 400; font-size: 12px; }
.auth-entry-field-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 5px 10px; flex-wrap: wrap; }
.auth-entry-field-heading a { font-size: 13px; }
.auth-entry-field input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin-block-start: 5px;
  padding: 8px 12px;
  border: 1px solid #829393;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 16px;
}
.auth-entry-field input[aria-invalid="true"] { border-color: var(--entry-accent); }
.auth-entry-password { position: relative; }
.auth-entry-password input { padding-inline-end: 47px; }
.auth-entry-password-toggle {
  position: absolute;
  inset: 2px 2px auto auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--entry-muted);
  cursor: pointer;
}
.auth-entry-password-toggle :is(svg,.icon) { vertical-align: middle; }
.auth-entry .auth-entry-hint, .auth-entry .auth-entry-terms { color: var(--entry-muted); font-size: 13px; line-height: 1.4; }
.auth-entry .auth-entry-hint { margin-block-start: 5px; }
.auth-entry .auth-entry-error { margin-block-start: 5px; color: var(--entry-accent); font-size: 13px; }
.auth-entry .auth-entry-oauth-error, .auth-entry .auth-entry-status { margin-block-start: 12px; }
.auth-entry .auth-entry-status { color: #195449; font-size: 13px; font-weight: 700; }
.auth-entry-submit {
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid var(--entry-accent);
  border-radius: 7px;
  background: var(--entry-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-entry-submit:hover { background: #701a36; }

.auth-entry-alternatives {
  box-sizing: border-box;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(18px,2.25vw,32px);
  border: 1px solid var(--entry-border);
  border-radius: 10px;
  background: var(--entry-surface);
}
.auth-entry-alternatives h2 {
  font: 800 clamp(21px,2.05vw,29px)/1.16 var(--display);
  letter-spacing: -.03em;
}
.auth-entry-alternatives ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.auth-entry-alternatives li:only-child { grid-column: 1 / -1; }
.auth-entry-alternatives a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px;
  border: 1px solid #829393;
  border-radius: 7px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}
.auth-entry-alternatives a:hover { border-color: var(--entry-accent); }
.auth-entry-alternatives svg { flex: none; }
@media (max-width: 760px) {
  .league-redesign .site-main:has(.auth-entry) { min-height: auto; padding-block-end: 50px; }
  .auth-entry-providers .auth-entry-columns { grid-template-columns: minmax(0,1fr); }
  .auth-entry-pair { grid-template-columns: minmax(0,1fr); }
}
