:root {
  --bg: #efeae2;
  --fg: #1a1916;
  --muted: #5e584e;
  --card: #fbf8f3;
  --line: #ddd4c6;
  --accent: #0d5c42;
  --accent-fg: #f7f4ee;
  --ink: #10241c;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  font-family: "Segoe UI Variable", "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
  overflow-x: clip;
}
.gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}
.gate-brand, .gate-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 4.5rem);
}
.gate-brand {
  background: var(--ink);
  color: #f6f3ec;
}
.markline {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.mark {
  width: 0.7rem;
  height: 1.35rem;
  border-radius: 0.2rem;
  background: #3cba8b;
}
.gate-brand h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.gate-form { align-items: center; background: var(--bg); }
form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: min(26rem, 100%);
}
h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
label {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  font-size: 0.92rem;
}
label span { color: var(--muted); }
input {
  width: 100%;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0 0.8rem;
  background: var(--card);
  color: inherit;
  font: inherit;
}
button {
  height: 2.85rem;
  margin-top: 0.35rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-weight: 700;
}
#msg { min-height: 1.25rem; margin: 0; color: var(--muted); }
@media (max-width: 800px) {
  .gate { grid-template-columns: 1fr; }
  .gate-brand { min-height: 11rem; justify-content: flex-end; }
  .gate-brand h1 { max-width: none; }
  .gate-form { justify-content: flex-start; align-items: stretch; }
  form { width: 100%; }
}
@media (max-width: 520px) {
  label { grid-template-columns: 1fr; gap: 0.3rem; min-height: 0; }
}
