body {
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(460px, calc(100vw - 32px));
  padding: 22px;
  box-shadow: rgba(100, 100, 111, 0.2) 0 7px 29px 0;
}

h1 {
  margin: 0 0 6px;
  font-size: 20px;
}

h2 {
  margin: 0;
  font-size: 18px;
}

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

.subtle {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 14px;
}

.auth-tab {
  border-radius: 8px;
}

.auth-tab.active {
  background: #1f2937;
  color: #f9fafb;
  border-color: #111827;
}

.auth-form {
  display: grid;
  gap: 8px;
}

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

label {
  margin-top: 4px;
  font-size: 13px;
}

input {
  width: 100%;
  padding: 10px;
  font-size: 14px;
}

button {
  margin-top: 10px;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
}

.text-button {
  border: 0;
  background: transparent;
  color: #0f4ea8;
  padding: 0;
  margin-top: 0;
  height: auto !important;
  min-height: 0 !important;
  width: fit-content;
}

.text-button:hover {
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
}

.error {
  margin-top: 12px;
  color: #b91c1c;
  min-height: 20px;
  font-size: 13px;
}

.info {
  margin-top: 12px;
  color: #0f766e;
  min-height: 20px;
  font-size: 13px;
}

.field-feedback {
  min-height: 18px;
  font-size: 12px;
  color: var(--muted);
}

.field-feedback.error {
  color: #b91c1c;
}

.field-feedback.ok {
  color: #166534;
}

.password-rules {
  margin: 2px 0 6px;
  padding-left: 0;
  font-size: 12px;
  color: var(--muted);
  list-style: none;
}

.password-rules li {
  margin: 2px 0;
  position: relative;
  padding-left: 16px;
}

.password-rules li::before {
  content: "*";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.password-rules li.valid {
  color: #166534;
}

.password-rules li.valid::before {
  content: "+";
  color: #166534;
}

.password-rules li.invalid {
  color: #b91c1c;
}

.password-rules li.invalid::before {
  color: #b91c1c;
}
