:root {
  color: #252522;
  background: #f4f4f0;
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", NanumGothic, sans-serif;
  font-synthesis: none;
}

@font-face {
  font-family: "TPQT Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/d8448bee.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background:
    linear-gradient(90deg, rgb(37 37 34 / 4%) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgb(37 37 34 / 4%) 1px, transparent 1px) 0 0 / 48px 48px,
    #f4f4f0;
}

.login-shell {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(280px, 0.8fr) minmax(440px, 1.2fr);
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 72px);
  color: #f6f6f2;
  background:
    radial-gradient(circle at 18% 12%, rgb(255 255 255 / 12%), transparent 34%),
    linear-gradient(145deg, #3b3b37 0%, #1f201e 55%, #121311 100%);
  box-shadow: 24px 0 64px rgb(20 20 18 / 12%);
}

.eyebrow {
  margin: 0 0 20px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand-panel .eyebrow {
  color: rgb(246 246 242 / 56%);
}

h1 {
  margin: 0;
  font-family: "TPQT Inter", sans-serif;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.brand-copy {
  margin: 28px 0 0;
  color: rgb(246 246 242 / 64%);
  font-size: 14px;
  line-height: 1.7;
}

.system-state {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 56px 0 0;
  border: 1px solid rgb(255 255 255 / 12%);
  background: rgb(255 255 255 / 12%);
}

.system-state div {
  padding: 14px;
  background: rgb(20 21 19 / 72%);
}

.system-state dt {
  margin-bottom: 5px;
  color: rgb(246 246 242 / 42%);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.system-state dd {
  margin: 0;
  font-size: 12px;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-card {
  width: min(100%, 400px);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid #deded7;
  background: rgb(255 255 252 / 92%);
  box-shadow: 0 24px 80px rgb(35 35 31 / 10%);
  backdrop-filter: blur(14px);
}

.mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 36px;
  color: #f7f7f3;
  background: #252522;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.login-card .eyebrow {
  margin-bottom: 10px;
  color: #77776f;
}

h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.login-copy {
  margin: 14px 0 24px;
  color: #6c6c65;
  font-size: 13px;
  line-height: 1.65;
}

.no-wrap {
  white-space: nowrap;
}

.error-message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #d9b8aa;
  color: #913f24;
  background: #fff8f5;
  font-size: 12px;
}

.error-message:empty {
  display: none;
}

.google-button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #cfcfc8;
  color: #252522;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.google-button svg {
  width: 18px;
  height: 18px;
}

.google-button:hover {
  border-color: #87877f;
  box-shadow: 0 6px 18px rgb(37 37 34 / 8%);
  transform: translateY(-1px);
}

.google-button:active {
  transform: translateY(0);
}

.google-button:focus-visible {
  outline: 3px solid rgb(37 37 34 / 20%);
  outline-offset: 3px;
}

.access-note {
  margin: 16px 0 0;
  color: #898980;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 220px;
    padding: 28px;
  }

  h1 {
    font-size: 40px;
  }

  .brand-copy,
  .system-state {
    display: none;
  }

  .login-panel {
    align-items: start;
    padding: 24px 16px 40px;
  }

  .login-card {
    padding: 28px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .google-button {
    transition: none;
  }
}
