.auth-shell {
  --surface-radius: 18px;
  --control-radius: 3px;
  --auth-border: var(--ui-border);
  --auth-ink: var(--ui-text);
  --auth-muted: var(--ui-muted);
  --auth-accent: var(--ui-link);
  min-height: 100vh;
  background: var(--ui-bg);
  color: var(--auth-ink);
}

.auth-layout {
  display: block;
  max-width: 420px;
  min-height: auto;
  margin: 0 auto;
  padding: 48px 16px;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--ui-border);
  border-radius: var(--surface-radius);
  background: var(--ui-surface);
  box-shadow: none;
}

.auth-brand {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ui-border);
}

.auth-panel__content {
  max-width: 32rem;
}

.auth-kicker {
  color: var(--auth-accent);
}

.auth-shell h1,
.auth-shell h2 {
  font-size: 20px;
  letter-spacing: 0;
}

.auth-shell .hint {
  margin-top: 3px;
  color: var(--auth-muted);
  line-height: 1.35;
}

.auth-shell .form {
  display: block;
  margin-top: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-shell .form label {
  display: block;
  margin: 8px 0 3px;
  color: var(--auth-ink);
  font-size: 13px;
  font-weight: 600;
}

.auth-shell input,
.auth-shell select,
.auth-shell textarea {
  width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--control-radius);
  background: var(--ui-surface);
  box-shadow: none;
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 500;
}

.auth-shell .input-help {
  margin: 2px 0 6px;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.35;
}

.auth-shell button,
.auth-shell .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 28px;
  margin-top: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--control-radius);
  background: #343a40;
  box-shadow: 0 12px 24px rgba(24, 52, 57, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.auth-shell button:hover,
.auth-shell .button:hover {
  background: #202327;
  box-shadow: none;
}

.auth-shell .error {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  padding: 6px 8px;
  border: 1px solid rgba(176, 32, 32, 0.18);
  border-radius: var(--control-radius);
  background: rgba(176, 32, 32, 0.08);
  color: #8a1f1f;
  font-weight: 600;
}

.auth-switch {
  margin-top: 20px;
}

.turnstile-field {
  min-height: 65px;
  margin-top: 14px;
}

.turnstile-field .cf-turnstile {
  width: 100%;
}

.auth-switch a {
  color: var(--auth-accent);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .auth-layout {
    padding: 16px 12px 24px;
  }

  .auth-panel {
    padding: 18px;
  }
}
