/* Pretendard 번들 — topnav.css 와 동일 이유(iOS 시뮬레이터 WebKit 한글 tofu
   런타임 버그 + 타이포 통일). 로그인은 topnav.css 를 안 쓰므로 여기도 선언. */
@font-face{font-family:"Pretendard";src:url("/fonts/PretendardVariable.woff2") format("woff2-variations");font-weight:45 920;font-style:normal;font-display:swap}
/* input/button 은 UA 기본 폰트라 body 상속이 끊긴다 — 웹폰트 강제 상속. */
input, button { font-family: inherit; }
/* 무인화연구소 로그인 — 21st.dev "Clean & Minimal sign in" 적응.
   뉴트럴 다크 표면 + 그린은 액센트로만(버튼·포커스·로고). 모노톤 그린 지양. */
:root {
  --bg:        #09090B;   /* zinc-950 */
  --card:      #141417;
  --card-line: #27272A;   /* zinc-800 */
  --input:     #0F0F12;
  --input-line:#2A2A2F;
  --ink:       #FAFAFA;   /* zinc-50 */
  --ink-dim:   #A1A1AA;   /* zinc-400 */
  --ink-fade:  #71717A;   /* zinc-500 */
  --accent:    #10B981;   /* emerald-500 */
  --accent-hi: #34D399;   /* emerald-400 */
  --ring:      rgba(16,185,129,.35);
  --danger:    #F87171;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background:
    radial-gradient(70% 55% at 50% -10%, #161619 0%, transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 380px; }

.card {
  display: flex; flex-direction: column; align-items: center;
  padding: 34px 30px 26px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  box-shadow: 0 16px 48px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04);
}

.badge {
  width: 60px; height: 60px; margin-bottom: 18px; overflow: hidden;
  background: #fff;
  border: 1px solid var(--card-line); border-radius: 16px;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.6);
}
/* 로고 확대 + 크롭 — 흰 여백만 살짝 잘라 마크가 잘리지 않게 */
.badge img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }

h1 { font-size: 19px; font-weight: 600; letter-spacing: -.2px; margin: 0 0 6px; text-align: center; }
.sub { color: var(--ink-dim); font-size: 13.5px; margin: 0 0 24px; text-align: center; }

form { width: 100%; display: flex; flex-direction: column; gap: 10px; }

.control { position: relative; display: flex; align-items: center; }
.control .ic {
  position: absolute; left: 13px; width: 17px; height: 17px; color: var(--ink-fade); pointer-events: none;
}
.control .ic svg { width: 100%; height: 100%; }
.control input {
  width: 100%; height: 46px; padding: 0 14px 0 40px;
  border: 1px solid var(--input-line); border-radius: 11px;
  background: var(--input); color: var(--ink); font-size: 15px;
  transition: border-color .12s, box-shadow .12s;
}
.control input::placeholder { color: var(--ink-fade); }
.control input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}
.pw input { padding-right: 50px; }
.pw-toggle {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--ink-fade);
  font-size: 12.5px; padding: 6px 8px; cursor: pointer; border-radius: 7px;
}
.pw-toggle:hover { color: var(--ink-dim); }

.error { min-height: 16px; margin: 2px 2px 0; font-size: 12.5px; color: transparent; }
.error.show { color: var(--danger); }

.submit {
  height: 46px; margin-top: 8px;
  border: none; border-radius: 11px; cursor: pointer;
  background: var(--accent); color: #04140C; font-size: 15px; font-weight: 700; letter-spacing: .2px;
  transition: background .12s, transform .04s;
}
.submit:hover { background: var(--accent-hi); }
.submit:active { transform: translateY(1px); }
.submit[disabled] { opacity: .6; cursor: progress; }

.hint { margin: 18px 0 0; color: var(--ink-fade); font-size: 12px; text-align: center; }

@media (prefers-reduced-motion: reduce) { .control input, .submit { transition: none; } }
