/* RANKLAB 로그인 화면 전용 (대시보드는 app.css) */
@font-face { font-family: "Pretendard"; src: url("/assets/fonts/PretendardVariable.woff2") format("woff2"); font-weight: 45 920; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/assets/fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #f6f6f2;
  --paper: #ffffff;
  --ink: #14171c;
  --ink-2: #4a4f58;
  --ink-3: #8a8f98;
  --line: #e7e7e0;
  --line-2: #efefe9;
  --lime: #c6f432;
  --lime-ink: #3d5200;
  --lime-soft: #f1fbd3;
  --up: #e5484d;
  --up-soft: #fdecec;
  --down: #2f6fe4;
  --down-soft: #eaf1fd;
  --r: 18px;
  --r-s: 12px;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1320px;
  --shadow: 0 1px 2px rgba(20, 23, 28, .04), 0 6px 24px -12px rgba(20, 23, 28, .10);
  --sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "JB Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--ink-3); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; border-radius: 8px; }
.word { font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.word b { color: var(--lime-ink); font-weight: 800; }

/* ---------- 로그인 ---------- */
body.login { padding: 0; }
.lg { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: clamp(400px, 36vw, 540px) 1fr; gap: 16px; padding: 16px; }
.lg-form { display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: clamp(24px, 5vw, 64px); }
.lg-form .brand { position: absolute; top: clamp(28px, 4vw, 48px); }
.lg-copy h1 { margin: 0; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.22; letter-spacing: -.035em; font-weight: 750; }
.lg-copy p { margin: 14px 0 0; color: var(--ink-2); font-size: 15.5px; }
#lf { display: grid; gap: 10px; max-width: 380px; }
.lg-field { display: grid; gap: 6px; }
.lg-field span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.lg-field input { height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.lg-field input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(198, 244, 50, .55); }
.cta { height: 52px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15.5px; font-weight: 700; cursor: pointer; transition: transform .1s, background .15s; }
.cta:hover { background: #262a31; }
.cta:active { transform: scale(.99); }
.cta[disabled] { opacity: .6; cursor: default; }
#err { min-height: 20px; font-size: 13.5px; color: var(--up); }
.lg-foot { position: absolute; bottom: clamp(24px, 4vw, 40px); margin: 0; font-size: 12.5px; color: var(--ink-3); }
.lg-form { position: relative; }
.lg-scene { position: relative; border-radius: 28px; overflow: hidden; background: #9a97ab; }
.lg-img { position: absolute; inset: 0; background: url("/assets/hero_dusk.jpg") center 60% / cover no-repeat; animation: drift 40s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.08) translateX(-1.5%); } }
.lg-card { position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 18px; padding: 18px 20px; min-width: 280px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35); }
.lg-card .k { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.lg-card ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.lg-card li { display: flex; gap: 12px; align-items: baseline; }
.lg-card li b { font-weight: 600; min-width: 46px; }
.lg-card li:nth-child(2) b { background: var(--lime); border-radius: 5px; padding: 0 4px; margin-left: -4px; }
@media (max-width: 860px) {
  .lg { grid-template-columns: 1fr; grid-template-rows: 220px 1fr; padding: 12px; }
  .lg-scene { order: -1; border-radius: 22px; }
  .lg-card { display: none; }
  .lg-form { padding: 28px 12px 64px; justify-content: flex-start; gap: 26px; }
  .lg-form .brand { position: static; }
  .lg-foot { position: static; }
  .login .word { display: inline; }
}

/* 한국어는 낱말 단위로 줄바꿈 (맥 배포 시 추가) */
h1, h2, h3, p, .lg-copy h1 { word-break: keep-all; overflow-wrap: anywhere; }
