:root {
    --navy-950: #041225;
    --navy-900: #071b35;
    --navy-800: #0d2d50;
    --blue: #2d83ed;
    --cyan: #29c7d8;
    --green: #35d3a1;
    --amber: #f0a62b;
    --line: rgba(255, 255, 255, .12);
    --text: #f5f9ff;
    --muted: #9bb0c7;
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { min-height: 100vh; color: var(--text); background: var(--navy-950); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
.login-grid-bg { position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(65,129,191,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(65,129,191,.055) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(circle at 46% 45%, #000 0, transparent 80%); }
.login-grid-bg::before, .login-grid-bg::after { position: absolute; content: ""; width: 460px; height: 460px; border-radius: 50%; filter: blur(130px); opacity: .18; }
.login-grid-bg::before { top: -190px; right: 24%; background: #1677e8; }
.login-grid-bg::after { left: 10%; bottom: -250px; background: #18b9ca; }
.login-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(560px, 1.35fr) minmax(430px, .65fr); }
.login-scene { min-width: 0; display: flex; flex-direction: column; padding: 38px clamp(40px, 6vw, 92px) 30px; background: linear-gradient(135deg, rgba(13,45,80,.58), rgba(4,18,37,.2)); border-right: 1px solid var(--line); }
.scene-header { display: flex; align-items: center; justify-content: space-between; }
.login-brand { display: flex; align-items: center; gap: 13px; }
.login-brand-mark { position: relative; width: 43px; height: 43px; border-radius: 50%; background: linear-gradient(145deg, #3c9cff, #145ba9); box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 7px 18px rgba(0,0,0,.22); overflow: hidden; }
.login-brand-mark::before { position: absolute; inset: 7px; content: ""; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }
.login-brand-mark i { position: absolute; left: 8px; right: 8px; height: 3px; background: #fff; border-radius: 50%; transform: rotate(-8deg); }
.login-brand-mark i:nth-child(1) { top: 15px; }
.login-brand-mark i:nth-child(2) { top: 21px; left: 12px; }
.login-brand-mark i:nth-child(3) { top: 27px; left: 17px; }
.login-brand > span:last-child { display: flex; flex-direction: column; }
.login-brand strong { font-size: 19px; letter-spacing: -.5px; }
.login-brand small { margin-top: 3px; color: #9eb6cf; font-size: 10px; letter-spacing: -.2px; }
.monitor-link { display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: #b4c7da; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; font-weight: 700; transition: .18s; }
.monitor-link:hover { color: #fff; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
.scene-copy { margin-top: clamp(55px, 10vh, 105px); }
.scene-eyebrow { display: flex; align-items: center; gap: 9px; color: #6eb1ff; font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
.scene-eyebrow i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(53,211,161,.1); }
.scene-copy h1 { margin: 17px 0 18px; max-width: 720px; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.21; letter-spacing: -2.6px; }
.scene-copy h1 em { color: transparent; background: linear-gradient(90deg, #49a4ff, #42d4df); background-clip: text; font-style: normal; }
.scene-copy p { max-width: 610px; margin: 0; color: #9eb2c8; font-size: 13px; line-height: 1.75; }
.live-board { position: relative; min-height: 275px; margin-top: 40px; overflow: hidden; background: linear-gradient(145deg, rgba(11,45,78,.86), rgba(5,27,51,.88)); border: 1px solid rgba(109,171,231,.18); border-radius: 16px; box-shadow: 0 22px 60px rgba(0,0,0,.2); }
.board-map { position: absolute; inset: 0 0 76px; overflow: hidden; background: radial-gradient(circle at 48% 50%, rgba(43,128,213,.12), transparent 58%); }
.board-map svg { width: 100%; height: 100%; }
.map-line { fill: none; stroke: #42739e; stroke-width: 1.3; stroke-dasharray: 4 4; opacity: .65; }
.map-line.faint { opacity: .32; }
.river-line { fill: none; stroke: url(#river); stroke-width: 6; opacity: .65; }
.map-points circle { fill: #43d8de; stroke: #e5ffff; stroke-width: 2.5; filter: drop-shadow(0 0 7px rgba(51,213,220,.8)); }
.map-label { position: absolute; padding: 4px 6px; color: #8fb4d6; background: rgba(4,20,39,.7); border: 1px solid rgba(93,150,204,.18); border-radius: 4px; font-size: 7px; }
.label-one { top: 62%; left: 14%; }.label-two { top: 34%; left: 58%; }.label-three { top: 57%; right: 7%; }
.board-status { position: absolute; top: 14px; left: 15px; right: 15px; display: flex; justify-content: space-between; color: #85a5c2; font-size: 8px; }
.board-status span { display: flex; align-items: center; gap: 6px; }
.board-status i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(53,211,161,.1); }
.board-status b { color: #b7cee2; font-size: 9px; font-variant-numeric: tabular-nums; }
.board-metrics { position: absolute; inset: auto 0 0; height: 76px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(4,18,35,.72); border-top: 1px solid rgba(116,166,211,.14); backdrop-filter: blur(8px); }
.board-metrics > div { display: flex; flex-direction: column; justify-content: center; padding: 0 17px; border-right: 1px solid rgba(255,255,255,.07); }
.board-metrics > div:last-child { border-right: 0; }
.board-metrics span { color: #7896b2; font-size: 8px; }
.board-metrics strong { margin-top: 4px; color: #f3f9ff; font-size: 20px; }
.board-metrics strong.attention { color: #ffc15b; }
.board-metrics small { margin-left: 3px; color: #819db7; font-size: 8px; }
.scene-footer { display: flex; justify-content: space-between; margin-top: auto; padding-top: 25px; color: #7890a8; font-size: 9px; }
.scene-footer b { color: var(--green); }.scene-footer strong { color: #aec4d8; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 45px clamp(42px, 5vw, 78px); background: rgba(4,17,33,.78); backdrop-filter: blur(12px); }
.secure-badge { align-self: flex-start; display: flex; align-items: center; gap: 6px; padding: 7px 9px; color: #83e5c2; background: rgba(53,211,161,.08); border: 1px solid rgba(53,211,161,.18); border-radius: 7px; font-size: 8px; font-weight: 800; }
.secure-badge span { width: 15px; height: 15px; display: grid; place-items: center; color: #073a2b; background: var(--green); border-radius: 50%; font-size: 9px; }
.panel-heading { margin: 22px 0 28px; }
.panel-heading > span { color: #459cf7; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.panel-heading h2 { margin: 6px 0 8px; font-size: 28px; letter-spacing: -1.2px; }
.panel-heading p { margin: 0; color: #849bb2; font-size: 10px; line-height: 1.55; }
.form-alert { display: flex; align-items: center; gap: 9px; margin: -12px 0 18px; padding: 10px 12px; border-radius: 8px; font-size: 9px; }
.form-alert[hidden] { display: none; }
.form-alert span { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.form-alert p { margin: 0; line-height: 1.5; }
.form-alert.error { color: #ffc0c7; background: rgba(233,76,88,.1); border: 1px solid rgba(233,76,88,.22); }
.form-alert.error span { color: #411116; background: #ef6d78; }
.form-alert.success { color: #9eedcf; background: rgba(53,211,161,.08); border: 1px solid rgba(53,211,161,.2); }
.form-alert.success span { color: #0a432f; background: var(--green); }
.field-label { display: block; margin: 0 0 7px; color: #b5c7d9; font-size: 9px; font-weight: 800; }
.login-field { position: relative; height: 48px; display: flex; align-items: center; margin-bottom: 17px; background: rgba(12,39,68,.74); border: 1px solid rgba(133,174,213,.18); border-radius: 9px; transition: .17s; }
.login-field:focus-within { border-color: #438fe0; box-shadow: 0 0 0 3px rgba(45,131,237,.1); }
.login-field svg { width: 18px; height: 18px; margin-left: 14px; fill: none; stroke: #6987a4; stroke-width: 1.8; }
.login-field input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; color: #f4f8fc; background: transparent; border: 0; outline: 0; font-size: 11px; }
.login-field input::placeholder { color: #55718b; }
.login-field button { height: 30px; margin-right: 8px; padding: 0 8px; color: #7292af; background: transparent; border: 0; font-size: 8px; font-weight: 800; cursor: pointer; }
.form-options { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 21px; color: #718aa3; font-size: 8px; }
.form-options > label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.form-options input { position: absolute; opacity: 0; }
.form-options label i { position: relative; width: 15px; height: 15px; border: 1px solid #48637d; border-radius: 4px; }
.form-options input:checked + i { background: var(--blue); border-color: var(--blue); }
.form-options input:checked + i::after { position: absolute; top: 1px; left: 4px; width: 4px; height: 8px; content: ""; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.form-options a { color: #81b9f2; font-weight: 800; }
.login-submit { width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: linear-gradient(135deg, #2479dd, #2b91ee); border: 0; border-radius: 9px; box-shadow: 0 10px 24px rgba(20,104,201,.24); font-size: 11px; font-weight: 900; cursor: pointer; transition: .18s; }
.login-submit:hover { transform: translateY(-1px); filter: brightness(1.08); }
.login-submit:disabled { opacity: .62; transform: none; cursor: wait; }
.login-submit b { font-size: 16px; }
.access-guide { margin-top: 27px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.access-guide > strong { display: block; margin-bottom: 10px; color: #8199b0; font-size: 8px; }
.access-guide > div { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 9px; padding: 7px 0; }
.access-guide > div > span { width: 23px; height: 23px; display: grid; place-items: center; color: #58a3f2; background: rgba(45,131,237,.09); border: 1px solid rgba(69,151,238,.16); border-radius: 6px; font-size: 7px; font-weight: 900; }
.access-guide p { display: flex; flex-direction: column; margin: 0; }
.access-guide b { color: #b8c9da; font-size: 9px; }
.access-guide small { margin-top: 2px; color: #668199; font-size: 7px; }
.security-note { display: flex; align-items: center; gap: 6px; margin: 20px 0 0; color: #5f7890; font-size: 7px; line-height: 1.5; }
.login-loading { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(2,11,22,.82); backdrop-filter: blur(5px); }
.login-loading[hidden] { display: none; }
.login-loading > div { display: flex; flex-direction: column; align-items: center; }
.login-loading span { width: 34px; height: 34px; margin-bottom: 13px; border: 3px solid rgba(255,255,255,.12); border-top-color: #3c9cff; border-radius: 50%; animation: login-spin .7s linear infinite; }
.login-loading strong { font-size: 11px; }.login-loading small { margin-top: 5px; color: #7991a9; font-size: 8px; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (max-width: 1050px) { .login-shell { grid-template-columns: 1fr 430px; }.login-scene { padding-left: 38px; padding-right: 38px; }.scene-copy h1 { font-size: 40px; }.live-board { min-height: 240px; } }
@media (max-width: 820px) { body { overflow: auto; }.login-shell { display: block; }.login-scene { min-height: 510px; padding: 25px 24px 20px; border-right: 0; border-bottom: 1px solid var(--line); }.scene-copy { margin-top: 54px; }.scene-copy h1 { font-size: 38px; }.scene-copy p { font-size: 11px; }.live-board { min-height: 210px; margin-top: 30px; }.scene-footer { display: none; }.login-panel { min-height: 650px; padding: 50px max(24px, calc((100vw - 430px)/2)); } }
@media (max-width: 520px) { .login-scene { min-height: 460px; }.login-brand small { max-width: 180px; white-space: normal; }.monitor-link { padding: 8px; font-size: 0; }.monitor-link span { font-size: 13px; }.scene-copy h1 { font-size: 31px; letter-spacing: -1.5px; }.live-board { min-height: 185px; }.board-map { bottom: 66px; }.board-metrics { height: 66px; }.board-metrics > div { padding: 0 8px; }.board-metrics strong { font-size: 16px; }.login-panel { min-height: 620px; padding: 42px 22px; }.panel-heading h2 { font-size: 25px; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
