.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.identity-public {
  --ink: #1a1a22;
  --muted: #6b7280;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: #f6f7fa;
}

.identity-public .identity-card {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: 26px 30px 28px;
  border: 1px solid #e4e7ee;
  border-top: 4px solid #003da5;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 40, 110, .06);
}

.identity-public h1 { font-size: 22px; overflow-wrap: anywhere; }
.identity-public h2 { font-size: 18px; }
.identity-public p { font-size: 14px; }
.identity-public form { margin: 0; }
.identity-public label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #178a8a;
  margin-bottom: 6px;
}

.identity-public input:not([type=checkbox]):not([type=hidden]) {
  border: 1.5px solid #d3d8e2;
  padding: 11px 12px;
  margin: 0 0 15px;
  border-radius: 4px;
  font-size: 16px;
  background: white;
}

.identity-public #id_code {
  font-family: ui-monospace, monospace;
  letter-spacing: .12em;
  text-align: center;
  font-size: 18px;
}

.identity-public button, .identity-public .button {
  width: 100%;
  background: #178a8a;
  padding: 13px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 6px;
  text-align: center;
}

.identity-public button:hover, .identity-public .button:hover { background: #126f6f; }
.identity-public .secondary { color: var(--muted); background: transparent; }
.identity-public .secondary:hover { color: var(--ink); background: #f6f7fa; }
.identity-public .muted, .identity-public .helptext { font-size: 11.5px; line-height: 1.45; }
.identity-public .cancel-form { margin-top: 6px; }
.identity-public .auth-alternative {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e4e7ee;
}
.identity-public .access-foot {
  text-align: left;
  margin-top: 20px;
  padding: 15px 0 0;
  border-top: 1px solid #e4e7ee;
  font-size: 11.5px;
}

.identity-public .errorlist {
  padding: 10px 14px 10px 28px;
  background: #fdeaea;
  border: 1px solid #e52323;
  border-radius: 4px;
  color: #b71c1c;
  font-size: 13px;
}

@media (max-width: 480px) {
  .identity-public { padding: 24px 16px; }
  .identity-public .identity-card { padding: 24px 22px; }
}
