html.auth-locked,
html.auth-locked body {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.auth-locked body {
  position: fixed;
  inset: 0;
  touch-action: none;
}

html.auth-locked .auth-gate {
  height: 100vh;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  margin-top: 10px;
}

.auth-secondary-action {
  width: 100%;
  min-height: 42px;
  border: 1px solid #b9cffd;
  border-radius: 12px;
  color: #2563d9;
  background: #f6f9ff;
  font-weight: 700;
  cursor: pointer;
}

.auth-secondary-action:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

.auth-forgot-link {
  display: block;
  width: max-content;
  margin: 8px 0 14px auto;
  padding: 0;
  border: 0;
  color: #2563d9;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.auth-reset-panel {
  display: grid;
  gap: 12px;
}

.auth-reset-panel[hidden] {
  display: none !important;
}

.auth-reset-panel h2 {
  margin: 0;
  color: #10213d;
}

.auth-reset-panel p {
  margin: 0 0 4px;
  color: #6b7b93;
}

.auth-reset-panel label {
  display: grid;
  gap: 6px;
  color: #27364d;
  font-weight: 700;
}

.auth-reset-panel input {
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid #d4dce9;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
}

.auth-reset-message {
  min-height: 22px;
  color: #b42318;
}

@media (max-width: 760px) {
  html.auth-locked .auth-card-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    overflow: visible;
  }

  .auth-code-row {
    grid-template-columns: minmax(0, 1fr) 118px;
  }
}
