:root {
  --bg: #1d2129;
  --text: #f2f4f7;
  --muted: #7d8590;
  --line: #3a404b;
  --line-focus: #4b93e6;
  --accent: #4b93e6;
  --tagline: #6d9cd6;
  --btn: #2d6cb5;
  --btn-hover: #3479c6;
  --btn-active: #285f9f;
  --error: #f08080;
  --mono: "D2Coding", "Consolas", "SFMono-Regular", "Menlo", monospace;
  --sans: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login { width: 100%; max-width: 288px; }

.brand { text-align: center; }

.brand-mark {
  width: 34px;
  height: 39px;
  color: #e9edf2;
  display: block;
  margin: 0 auto 14px;
}

.brand-name {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .32em;
  padding-left: .32em;
}

.company {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.brand h1 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.tagline {
  margin: 0 auto 30px;
  max-width: 270px;
  color: var(--tagline);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.7;
  letter-spacing: .14em;
}

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

.field {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: border-color .15s;
}

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

.field .icon {
  width: 13px;
  height: 13px;
  flex: none;
  margin: 0 8px 0 2px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field:focus-within .icon { stroke: var(--accent); }

.field input {
  flex: 1;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 13px var(--sans);
}

.field input::placeholder { color: var(--muted); }

.field input[type="password"] { letter-spacing: .3em; }
.field input[type="password"]::placeholder { letter-spacing: normal; }

.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 40px var(--bg) inset;
  caret-color: var(--text);
}

.notice { margin: 6px 0 0; font-size: 12px; color: #e0b45c; }
.notice.error { color: var(--error); }

.btn {
  margin-top: 26px;
  height: 34px;
  border: 0;
  border-radius: 3px;
  background: var(--btn);
  color: #fff;
  font: 600 13px var(--sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background .15s;
}

.btn:hover { background: var(--btn-hover); }
.btn:active { background: var(--btn-active); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: wait; }

.btn .icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hint {
  margin: 18px 0 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a.btn { text-decoration: none; display: flex; }
.hint a { color: var(--accent); text-decoration: none; }
.hint a:hover { text-decoration: underline; }
