.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 36, 51, 0.92);
}

.auth-layout {
  width: min(540px, 100%);
}

.auth-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #ffffff;
}

.auth-shell {
  padding: 24px 24px 18px;
}

.auth-header {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-wordmark {
  width: min(240px, 70%);
  height: auto;
}

.auth-mode {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 14px;
  background: #edf2f7;
}

.auth-tab {
  padding: 11px 14px;
  border-radius: 10px;
  color: #516173;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#auth-mode-login:checked ~ .auth-tabs label[for="auth-mode-login"],
#auth-mode-setup:checked ~ .auth-tabs label[for="auth-mode-setup"] {
  color: #18324f;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(24, 36, 51, 0.1);
}

.auth-form-panel {
  display: none;
}

#auth-mode-login:checked ~ #login-form,
#auth-mode-setup:checked ~ #setup-form {
  display: block;
}

.auth-form {
  display: grid;
  gap: 12px;
  padding: 18px 0 6px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #465568;
  font-size: 13px;
  font-weight: 700;
}

.auth-form button {
  margin-top: 4px;
}

.auth-message {
  margin-top: 12px;
  text-align: center;
}

.recovery-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 36, 51, 0.92);
}

.recovery-layout {
  width: min(540px, 100%);
}

.recovery-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #ffffff;
}

.text-link {
  color: #245d8f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .auth-page,
  .recovery-page {
    align-items: start;
  }
}
