:root {
  color: #1f2937;
  background: #f1f5f9;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 20% 0%, rgb(219 234 254 / 85%), transparent 35%),
    linear-gradient(160deg, #f8fafc 0%, #eef2ff 100%);
}

button,
input {
  font: inherit;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}

.access-card {
  width: min(100%, 430px);
  padding: 36px 28px 28px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 24px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 24px 70px rgb(30 64 175 / 13%);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 28px rgb(37 99 235 / 28%);
  font-size: 22px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.25;
}

.description {
  margin: 12px 0 28px;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}

label {
  display: block;
  margin-bottom: 9px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  color: #0f172a;
  background: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(37 99 235 / 12%);
}

button {
  display: grid;
  width: 100%;
  height: 50px;
  margin-top: 16px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #2563eb;
  box-shadow: 0 10px 24px rgb(37 99 235 / 24%);
  font-weight: 650;
  cursor: pointer;
  transition: transform 120ms ease, background 150ms ease, box-shadow 150ms ease;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: 3px solid rgb(37 99 235 / 28%);
  outline-offset: 3px;
}

button:disabled {
  background: #93a4bb;
  box-shadow: none;
  cursor: wait;
}

.button-loading,
button.is-loading .button-text {
  display: none;
}

button.is-loading .button-loading {
  display: inline;
}

.message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #b91c1c;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.message.is-info {
  color: #475569;
}

.notice {
  margin: 17px 0 0;
  padding-top: 17px;
  border-top: 1px solid #e2e8f0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 420px) {
  .access-card {
    padding: 30px 22px 24px;
    border-radius: 20px;
  }

  h1 {
    font-size: 25px;
  }
}

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