.main-content[data-wiki-section="login"] {
  display: grid;
  place-items: center;
  padding-block: clamp(1.5rem, 4vw, 3.75rem);
}

.auth-panel {
  --auth-control-border: var(--input-line);
  --auth-control-radius: 0.75rem;
  display: grid;
  width: min(100%, 60rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: var(--surface);
  box-shadow: 0 1.5rem 4rem -2.5rem var(--shadow-deep), 0 0.25rem 1rem var(--shadow-soft);
}

.auth-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 53% 48%, var(--hero-glow), transparent 60%),
    radial-gradient(ellipse at 0% 100%, var(--hero-glow), transparent 62%),
    var(--hero-bg);
}

.auth-art::before,
.auth-art::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.auth-art::before {
  inset: 0;
  background: radial-gradient(circle, var(--decor-soft) 1px, transparent 1px) center / 1.5rem 1.5rem;
  mask-image: radial-gradient(ellipse at center, transparent 18%, #000 60%, transparent 90%);
}

.auth-art::after {
  inset: 1rem;
  border: 1px solid var(--decor-soft);
  border-radius: 0.95rem;
}

.auth-art .hero-art {
  width: min(95%, 25rem);
  justify-self: center;
}

.auth-art .hero-orbit-outer {
  box-shadow: 0 0 2.5rem var(--decor-glow), inset 0 0 2.5rem var(--decor-glow);
}

.auth-content {
  min-width: 0;
  align-self: center;
  padding: clamp(1.35rem, 4vw, 3.25rem);
}

.auth-content h1 {
  color: var(--heading);
  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.auth-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  margin-top: 1.15rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface-soft);
}

.auth-modes a {
  display: grid;
  min-height: 2.75rem;
  place-items: center;
  padding: 0.4rem;
  border-radius: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.auth-modes a:hover {
  background: var(--surface-hover);
  color: var(--accent);
}

.auth-modes a[aria-current="page"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 3px var(--shadow);
}

.auth-notice {
  margin-top: 1.15rem;
  padding: 0.65rem 0.85rem;
  border-inline-start: 3px solid var(--error-line);
  border-radius: 0.6rem;
  background: var(--error-bg);
  color: var(--error-ink);
  font-size: 0.9rem;
}

.auth-credentials,
.auth-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.auth-credentials {
  gap: 0.95rem;
  margin-top: 1.35rem;
}

.auth-field {
  gap: 0.35rem;
}

.auth-field label {
  font-size: 0.92rem;
  font-weight: 700;
}

.auth-help {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.auth-text-input,
.auth-password {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid var(--auth-control-border);
  border-radius: var(--auth-control-radius);
  background: var(--input-bg);
}

.auth-text-input,
.auth-password input {
  min-width: 0;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  font: inherit;
}

.auth-password {
  display: flex;
  padding-inline-end: 0.25rem;
}

.auth-password input {
  flex: 1;
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.auth-text-input:focus,
.auth-password:focus-within {
  border-color: var(--focus);
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.auth-password input:focus {
  outline: none;
}

.auth-content button {
  font-family: inherit;
  cursor: pointer;
}

.auth-content button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.auth-password-toggle {
  min-width: 4.75rem;
  min-height: 2.75rem;
  align-self: center;
  padding: 0.3rem 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-password-toggle:hover {
  background: var(--surface-soft);
}

.auth-content .auth-password-toggle:focus-visible {
  outline-offset: -2px;
}

.auth-submit,
.auth-provider {
  width: 100%;
  min-height: 3.25rem;
  border-radius: var(--auth-control-radius);
  font-size: 0.98rem;
}

.auth-submit {
  margin-top: 0.15rem;
  border-color: var(--action);
  background: var(--action);
  color: var(--on-action);
  box-shadow: 0 0.25rem 0.5rem var(--shadow-soft);
}

.auth-submit:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-block: 1.35rem 0.8rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  text-align: center;
}

.auth-divider::before,
.auth-divider::after {
  min-width: 0.5rem;
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.auth-provider {
  gap: 0.6rem;
  border-color: var(--auth-control-border);
  background: var(--input-bg);
  color: var(--ink);
}

.auth-provider:disabled {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  cursor: not-allowed;
}

.auth-provider-note {
  margin-top: 0.65rem;
  text-align: center;
}

@media (max-width: 47rem) {
  .auth-panel {
    max-width: 32rem;
    grid-template-columns: minmax(0, 1fr);
    border-block-start: 0.3rem solid var(--accent);
    border-radius: 1.2rem;
  }

  .auth-art {
    display: none;
  }
}
