:root {
  --ink: #1e2d24;
  --body: #46554c;
  --muted: #66756c;
  --sage: #94aa83;
  --sage-hover: #839a72;
  --border: #d2e1d7;
  --error: #a8422b;
  --error-bg: #fceee9;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(640px 440px at 15% 22%, rgba(206, 233, 216, 0.72) 0%, rgba(206, 233, 216, 0) 100%),
    radial-gradient(620px 440px at 86% 26%, rgba(251, 228, 204, 0.68) 0%, rgba(251, 228, 204, 0) 100%),
    linear-gradient(128deg, #e7f3ec 0%, #f4f8f4 50%, #faf0e4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate-wrap {
  width: 100%;
  max-width: 420px;
}

.gate-card {
  background: linear-gradient(145deg, #f6fbf8 0%, #ffffff 55%, #fff9f2 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 34px 36px;
  text-align: center;
  box-shadow: 0 22px 54px -26px rgba(24, 38, 29, 0.18), 0 4px 14px rgba(24, 38, 29, 0.04);
}

.gate-icon {
  display: block;
  margin: 0 auto 14px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(24, 38, 29, 0.10);
}

.gate-eyebrow {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 650;
  color: #456e52;
  letter-spacing: 0.03em;
}

.gate-card h1 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.gate-desc {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-input {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border-radius: 11px;
  border: 1px solid #c6d7cc;
  background: #ffffff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gate-input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(148, 170, 131, 0.22);
}

.gate-btn {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 11px;
  background: var(--sage);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(148, 170, 131, 0.30);
  transition: background 0.15s ease, transform 0.12s ease;
}

.gate-btn:hover {
  background: var(--sage-hover);
}

.gate-btn:active {
  transform: scale(0.99);
}

.gate-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.gate-error {
  margin: 14px 0 0;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 13px;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
