:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1c2430;
  background: #f3f5f7;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f3f5f7;
}

.site-access-page {
  min-height: 100vh;
  margin: 0;
  color: #1c2430;
  background: #f3f5f7;
}

.site-access-page button,
.site-access-page input {
  font: inherit;
}

.gate-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.gate-panel {
  width: min(100%, 420px);
  overflow: hidden;
  border: 1px solid #d9dee5;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(22 31 44 / 5%);
}

.gate-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 0 32px;
  border-bottom: 1px solid #e6e9ed;
}

.gate-product {
  color: #303946;
  font-size: 13px;
  font-weight: 600;
}

.gate-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #626c79;
  font-size: 12px;
}

.gate-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27815f;
  content: "";
}

.gate-panel__body {
  padding: 32px;
}

.gate-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: #526071;
  font-size: 12px;
  font-weight: 600;
}

.gate-kicker::before {
  width: 3px;
  height: 14px;
  border-radius: 1px;
  background: #315bd6;
  content: "";
}

.gate-panel h1 {
  margin: 0;
  color: #17202c;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
}

.gate-description {
  margin: 10px 0 26px;
  color: #626c79;
  font-size: 14px;
  line-height: 1.7;
}

.form-field {
  margin-bottom: 22px;
}

.gate-panel label {
  display: block;
  margin: 0 0 8px;
  color: #303946;
  font-size: 13px;
  font-weight: 600;
}

.gate-panel input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #b8c0cb;
  border-radius: 4px;
  outline: none;
  color: #17202c;
  background: #ffffff;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.gate-panel input:hover {
  border-color: #8d98a6;
}

.gate-panel input:focus-visible {
  border-color: #315bd6;
  box-shadow: 0 0 0 3px rgb(49 91 214 / 14%);
}

.field-note {
  margin: 8px 0 0;
  color: #7a8491;
  font-size: 12px;
  line-height: 1.55;
}

.message {
  margin: 0 0 14px;
  padding: 9px 11px;
  border: 1px solid #efc2bd;
  border-radius: 4px;
  color: #a2352b;
  background: #fff7f6;
  font-size: 13px;
  line-height: 1.45;
}

.message:empty {
  display: none;
}

.message[data-state="pending"] {
  border-color: #d9dee5;
  color: #526071;
  background: #f7f8fa;
}

.gate-actions {
  display: grid;
  gap: 10px;
}

.gate-panel .primary,
.gate-panel .secondary {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease,
    box-shadow 120ms ease;
}

.gate-panel .primary {
  border: 1px solid #294ebc;
  color: #ffffff;
  background: #315bd6;
}

.gate-panel .primary:hover:not(:disabled) {
  border-color: #2445a6;
  background: #294ebc;
}

.gate-panel .primary:focus-visible,
.gate-panel .secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(49 91 214 / 18%);
}

.gate-panel .primary:disabled {
  border-color: #aeb9d8;
  color: #f4f6fb;
  background: #8799ca;
  cursor: wait;
}

.gate-panel .secondary {
  border: 1px solid #cbd1d9;
  color: #364152;
  background: #ffffff;
}

.gate-panel .secondary:hover {
  border-color: #9fa8b4;
  background: #f7f8fa;
}

@media (max-width: 520px) {
  .gate-shell {
    align-items: start;
    padding: 24px 16px;
  }

  .gate-panel__header {
    padding: 0 22px;
  }

  .gate-panel__body {
    padding: 26px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
