/* Scoped to sign-in: consistent geometry after the template styles. */
.access-gate .access-panel {
  width: 100%;
  max-width: 440px;
  justify-self: center;
  box-sizing: border-box;
  padding: 28px;
}
.access-gate .access-panel h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 12px 0 0;
}
.access-gate .access-panel form {
  gap: 16px;
  margin: 24px 0 8px;
}
.access-gate .access-panel label {
  font-size: 14px;
  line-height: 1.4;
  gap: 6px;
}
.access-gate .access-panel input,
.access-gate .access-panel button.primary {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.35;
  padding: 10px 14px;
  border-radius: 12px;
}
.access-gate .access-panel button.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 0;
}
.access-gate .access-panel .form-error:empty { display: none; }
.access-gate .access-help { display: flex; justify-content: center; }
.access-gate .access-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  min-height: 44px;
  padding: 8px 4px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  border-radius: 6px;
  white-space: normal;
}
.access-gate .access-link:hover { text-decoration: underline; }
.access-gate .access-signup {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
}
.access-recovery { margin-top: 20px; }
.access-recovery .file-action { display: inline-flex; margin: 8px 0; }
@media (max-width: 760px) {
  .access-gate { padding: 24px 16px; gap: 24px; }
  .access-gate .access-panel { padding: 24px; }
  .access-gate .gate-copy h1 { font-size: 36px; }
}

/* Recovery help: choices are separate from the password-reset form. */
.editor.access-help-dialog { width: min(100%, 480px); }
.access-help-dialog .access-choices { display: grid; gap: 12px; margin: 20px 0; }
.access-help-dialog .access-choices button,
.access-help-dialog .file-action {
  min-height: 44px; width: 100%; box-sizing: border-box;
  font-size: 16px; line-height: 1.4; padding: 12px 16px;
  text-align: left; white-space: normal;
}
.access-help-dialog .access-recovery summary { cursor: pointer; padding: 10px 0; }
.access-help-dialog .access-recovery p { line-height: 1.5; }
