:root {
  color-scheme: light;
  --ink: #101316;
  --muted: #6c747d;
  --line: #e1e3e6;
  --blue: #2458ff;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f4f4f1;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

button, input { font: inherit; }

.developer-gate {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 0.92fr) minmax(460px, 1.08fr);
}

.gate-identity {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(34px, 5vw, 74px);
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #111820;
  background-size: 34px 34px;
  min-width: 0;
}

.gate-identity::after {
  content: "LAICAI";
  position: absolute;
  right: -28px;
  bottom: 7vh;
  color: rgba(255, 255, 255, 0.035);
  font-family: "Iowan Old Style", "Songti SC", serif;
  font-size: clamp(100px, 18vw, 260px);
  line-height: 0.7;
}

.gate-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.gate-brand img { width: 34px; height: 34px; object-fit: contain; }

.gate-index {
  position: absolute;
  top: clamp(34px, 5vw, 74px);
  right: clamp(34px, 5vw, 74px);
  color: #71809a;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.gate-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
}

.gate-copy > p {
  margin: 0 0 24px;
  color: #7094ff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.gate-copy h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Songti SC", "STSong", serif;
  font-size: clamp(62px, 8vw, 116px);
  font-weight: 500;
  line-height: 0.95;
}

.gate-copy > span {
  display: block;
  max-width: 520px;
  margin-top: 28px;
  color: #aeb7c4;
  font-size: 15px;
  line-height: 1.8;
}

.gate-boundary {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding-top: 18px;
  border-top: 1px solid #2b3540;
}

.gate-boundary span { color: #788697; font-size: 10px; letter-spacing: 0.12em; }
.gate-boundary p { margin: 8px 0 0; color: #a6afba; font-size: 12px; line-height: 1.65; }

.gate-auth {
  min-height: 100vh;
  padding: clamp(30px, 5vw, 74px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 74% 28%, rgba(36, 88, 255, 0.07), transparent 28%),
    #fff;
  min-width: 0;
}

.gate-back {
  align-self: flex-end;
  color: #68717a;
  font-size: 12px;
  text-decoration: none;
}

.gate-auth form { width: 100%; max-width: 510px; min-width: 0; margin: auto; }

.auth-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 54px;
  color: #7b838b;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.auth-step i { height: 1px; background: var(--line); }
.auth-step em { font-style: normal; }
.auth-kicker { margin: 0 0 16px; color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: 0.12em; }

.gate-auth h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Songti SC", serif;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
}

.auth-description { margin: 16px 0 42px; color: var(--muted); font-size: 13px; }
.gate-auth label { display: block; margin-bottom: 10px; color: #555e66; font-size: 11px; }

.code-field {
  border-bottom: 2px solid #1c242c;
  display: flex;
  align-items: center;
  gap: 16px;
}

.code-field:focus-within { border-color: var(--blue); }

.code-field input {
  min-width: 0;
  flex: 1;
  padding: 12px 0 16px;
  border: 0;
  outline: 0;
  color: #111820;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 34px;
  letter-spacing: 0.36em;
  background: transparent;
}

.code-field input::placeholder { color: #c6cbd0; }
.code-field span { color: #9aa1a8; font-size: 9px; letter-spacing: 0.12em; }

.gate-auth button[type="submit"] {
  width: 100%;
  margin-top: 30px;
  padding: 17px 19px;
  border: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: #12203a;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.gate-auth button[type="submit"]:hover { background: #1c376b; transform: translateY(-2px); }
.gate-auth button[disabled] { cursor: wait; opacity: 0.65; transform: none; }
.gate-auth button strong { font-size: 14px; }
.gate-auth button span { font-size: 20px; }
.auth-status { min-height: 22px; margin: 14px 0 0; color: #a44d30; font-size: 12px; }
.auth-status.success { color: #1d7554; }

.gate-auth footer {
  display: flex;
  justify-content: space-between;
  color: #a4a9ae;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.gate-auth footer em { font-style: normal; }

@media (max-width: 820px) {
  .developer-gate { grid-template-columns: minmax(0, 1fr); }
  .gate-identity { min-height: 42vh; padding: 28px 24px; }
  .gate-copy { margin: 82px 0 58px; }
  .gate-copy h1 { font-size: 58px; }
  .gate-auth { min-height: 58vh; padding: 30px 24px; }
  .gate-back, .gate-auth footer { display: none; }
  .gate-auth form { margin: 48px auto; }
  .auth-step { margin-bottom: 38px; }
}
