.auth-form .form-field > label {
  display: block;
  margin-bottom: 8px;
}

.auth-field-hint,
.auth-field-error {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.auth-field-hint {
  color: var(--muted-strong);
}

.auth-field-error {
  color: #a52c25;
  font-weight: 650;
}

.auth-form input[aria-invalid="true"] {
  border-color: #a52c25;
}

.auth-secret-control {
  display: flex;
  align-items: stretch;
  gap: 7px;
  min-width: 0;
}

.auth-secret-control > input {
  flex: 1;
  min-width: 0;
}

.auth-secret-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 6px;
  min-width: 44px;
  min-height: 50px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted-strong);
  background: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.auth-secret-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.auth-secret-eye {
  position: relative;
  width: 18px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 75% 25%;
  transform: rotate(45deg);
}

.auth-secret-eye::before {
  position: absolute;
  inset: 3px 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.auth-secret-toggle[aria-pressed="true"] .auth-secret-eye::after {
  position: absolute;
  left: 7px;
  top: -5px;
  width: 1.5px;
  height: 19px;
  background: currentColor;
  content: "";
}

.auth-existing-account label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  line-height: 1.5;
  cursor: pointer;
}

.auth-existing-account input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}
/* The access overview contains tables, unlike the narrow login forms. */
.auth-page-wide .auth-shell { width: min(1100px, 100%); max-width: 1100px; }
.auth-page-wide .auth-card { min-width: 0; }
