.auth-shell {
  display: flex;
  justify-content: center;
  padding: 4rem 0 6rem;
}

.auth-card {
  width: min(100%, 620px);
  padding: 2.5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.auth-card h1 {
  margin-top: 0.25rem;
}

.auth-intro {
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.auth-card [hidden] {
  display: none !important;
}

.auth-form label {
  font-weight: 700;
}

.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 0.9rem;
  border: 1px solid #c7cbd1;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.auth-form input:focus {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.registration-consent {
  margin: 0.5rem 0 0;
  padding: 1rem;
  border: 1px solid #d9dce1;
  border-radius: 8px;
  background: #fafafa;
}

.registration-consent legend {
  padding: 0 0.35rem;
  font-weight: 700;
}

.registration-consent ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  color: #374151;
}

.registration-consent li + li {
  margin-top: 0.45rem;
}

.registration-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400 !important;
  cursor: pointer;
}

.registration-consent-check input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
}

.turnstile-container {
  min-height: 65px;
  margin-top: 0.5rem;
}

.auth-status {
  min-height: 1.5rem;
  margin-bottom: 0.75rem;
  padding: 0;
}

.auth-status.error,
.auth-status.success {
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.auth-status.error {
  background: #fff2f2;
  border: 1px solid #e4b8b8;
}

.auth-status.success {
  background: #f1f8f3;
  border: 1px solid #bdd8c4;
}

.button-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid #aeb3ba;
}

.authenticated-panel {
  padding-top: 1rem;
}

.auth-switch {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
}

.auth-switch a {
  font-weight: 700;
}

.auth-form button:disabled,
.authenticated-panel button:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 2rem 0 4rem;
  }

  .auth-card {
    padding: 1.4rem;
  }

  .registration-consent {
    padding: 0.85rem;
  }
}
