.code-entry {
  position: relative;
  display: block;
  width: 100%;
  max-width: 380px;
  isolation: isolate;
}
.code-entry-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  pointer-events: none;
}
.code-entry-digit {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  min-width: 0;
  border: 2px solid #c4ceb9;
  border-radius: 10px;
  background: #ffffff;
  color: #26382d;
  font:
    700 30px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  box-shadow: 0 3px 0 #dce3d5;
  transition:
    border-color 0.12s,
    background-color 0.12s,
    box-shadow 0.12s;
}
.code-entry-digit[data-active] {
  border-color: #276247;
  background: #f1f7e7;
  box-shadow:
    0 3px 0 #abc39c,
    0 0 0 3px #9ebca733;
}
.login-card .code-entry-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  caret-color: transparent;
  font-size: 16px;
  letter-spacing: normal;
  box-shadow: none !important;
  outline: none !important;
  cursor: text;
}
.code-entry:has(input:disabled) .code-entry-slots {
  opacity: 0.6;
}
[data-theme="dark"] .code-entry-digit {
  background: #15221f;
  color: #edf2e9;
  border-color: #617459;
  box-shadow: 0 3px 0 #304329;
}
[data-theme="dark"] .code-entry-digit[data-active] {
  border-color: #ffd64d;
  background: #343a23;
  box-shadow:
    0 3px 0 #9b8129,
    0 0 0 3px #ffda5522;
}
@media (max-width: 380px) {
  .code-entry-slots {
    gap: 5px;
  }
  .code-entry-digit {
    height: 58px;
    font-size: 26px;
    border-radius: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .code-entry-digit {
    transition: none;
  }
}
