:root {
  color-scheme: light;
  --paper: #ecede8;
  --panel: #f6f7f3;
  --ink: #16181a;
  --secondary: #50564f;
  --line: #c9ccc4;
  --accent: #8a6a12;
  --short: #b6382c;
  --long: #2166a8;
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.page { max-width: 1240px; min-height: 100svh; margin: 0 auto; padding: 36px 56px 24px; display: flex; flex-direction: column; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 0 22px; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 600 17px/1 ui-monospace, monospace; letter-spacing: -.6px; }
.brand-mark { display: flex; gap: 3px; align-items: end; height: 23px; }
.brand-mark i { width: 4px; height: 11px; background: var(--ink); }
.brand-mark i:nth-child(2) { height: 20px; }
.brand-mark i:nth-child(3) { height: 15px; background: var(--accent); }
.brand-mark i:nth-child(4) { height: 23px; }
.edition, .eyebrow, .key-label, footer { font-size: 11px; letter-spacing: 1.3px; font-weight: 500; }
.edition, .key-label, footer { font-family: ui-monospace, monospace; color: var(--secondary); }
.login-layout { display: grid; grid-template-columns: 1fr 400px; align-items: center; gap: 72px; flex: 1; padding: 72px 0 80px; }
.eyebrow { color: var(--secondary); margin: 0; display: flex; align-items: center; gap: 10px; }
.accent-line { width: 22px; height: 2px; background: var(--accent); }
h1 { font-size: clamp(32px, 3.8vw, 49px); line-height: 1.45; font-weight: 600; letter-spacing: -2px; margin: 26px 0 21px; word-break: keep-all; }
.intro-copy { color: var(--secondary); font-size: 14px; line-height: 1.9; word-break: keep-all; }
.research-key { display: flex; gap: 40px; padding: 27px 0; margin-top: 39px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 360px; }
.research-key > div { display: flex; flex-direction: column; gap: 12px; }
.research-key > div + div { border-left: 1px solid var(--line); padding-left: 40px; }
.research-key strong { font: 500 25px/1 ui-monospace, monospace; white-space: nowrap; }
.muted { color: var(--secondary); font-weight: 400; }
.tenor-short { color: var(--short); }
.tenor-long { color: var(--long); }
.intro-note { font-size: 12px; color: var(--secondary); margin: 18px 0 0; }
.login-panel { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 30px 32px 28px; box-shadow: 0 8px 28px #16181a04; }
.panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.panel-top .eyebrow { font: 500 10px/1.5 ui-monospace, monospace; }
.lock { color: var(--accent); font: 24px/1 ui-monospace, monospace; }
h2 { font-size: 23px; font-weight: 600; letter-spacing: -.8px; margin: 0 0 10px; }
.panel-copy { font-size: 12px; color: var(--secondary); margin: 0 0 29px; line-height: 1.7; }
label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
input { width: 100%; min-width: 0; height: 47px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); padding: 0 13px; font-size: 16px; }
input::placeholder { color: var(--secondary); font-size: 13px; }
#username { margin-bottom: 22px; font-family: ui-monospace, monospace; font-size: 14px; }
.password-field { position: relative; }
#password { padding-right: 63px; }
.visibility-button { position: absolute; right: 3px; top: 3px; height: 41px; min-width: 52px; border: 0; color: var(--secondary); background: transparent; font-size: 12px; }
.form-message { min-height: 22px; margin: 10px 0 9px; color: var(--short); font-size: 12px; line-height: 1.7; word-break: keep-all; }
.submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 49px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--panel); font-size: 13px; font-weight: 600; transition: opacity .15s; }
.submit-button:hover { opacity: .85; }
.submit-button:disabled { opacity: .6; cursor: wait; }
.submit-button > span + span { font-size: 21px; font-weight: 400; }
.session-note { font-size: 11px; line-height: 1.8; color: var(--secondary); margin: 17px 0 0; }
:is(input, button, a):focus-visible { outline: 2px solid var(--long); outline-offset: 3px; }
footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 17px; font-size: 10px; letter-spacing: .7px; line-height: 1.7; }
.footer-separator { margin: 0 7px; }
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --paper: #17191a; --panel: #1e2122; --ink: #edeee9; --secondary: #a8ada7; --line: #3c423d; --accent: #d2b45d; --short: #f07c6e; --long: #65ace5; }
}
@media (max-width: 900px) {
  .page { padding: 28px 32px 22px; }
  .login-layout { gap: 35px; grid-template-columns: 1fr 360px; }
  .login-panel { padding-left: 26px; padding-right: 26px; }
  .research-key { gap: 24px; }
  .research-key > div + div { padding-left: 24px; }
}
@media (max-width: 700px) {
  .page { padding: 24px 20px 20px; }
  .edition { font-size: 9px; letter-spacing: .3px; }
  .brand { font-size: 15px; gap: 8px; }
  .login-layout { grid-template-columns: 1fr; gap: 30px; max-width: 440px; width: 100%; align-self: center; padding: 36px 0 42px; }
  h1 { font-size: 32px; margin: 17px 0 12px; letter-spacing: -1.5px; line-height: 1.35; }
  .intro-copy { font-size: 12px; margin-bottom: 0; }
  .research-key, .intro-note { display: none; }
  .login-panel { padding: 25px 24px; }
  .panel-top { margin-bottom: 20px; }
  footer { flex-wrap: wrap; font-size: 9px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
