/* =========================================================
   Linxis Login Page — ITAM 2.0 (2026-10-12)
   왼쪽 = 둥근 안쪽 패널(네이비 + 오로라 빛 + 제품 미리보기 카드)
   오른쪽 = 로그인 폼. 색은 디자인 시스템 주 파랑(--am-primary) 한 가지.
   ========================================================= */
:root {
    --lg-primary:      #1a56db;
    --lg-primary-dark: #1e40af;
    --lg-primary-soft: #eaf1fd;
    --lg-ink:          #0f172a;
    --lg-text:         #334155;
    --lg-muted:        #64748b;
    --lg-faint:        #94a3b8;
    --lg-line:         #e2e8f0;
    --lg-field-line:   #d5dde8;
    --lg-bg:           #f5f7fb;
    --lg-navy-0:       #0b1424;
    --lg-navy-1:       #13213a;
    --lg-navy-2:       #1b2e4d;
    --lg-hero-text:    #c7d6ea;
    --lg-hero-muted:   rgba(199, 214, 234, 0.62);
}

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

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Pretendard', 'Inter', 'Noto Sans KR', 'Segoe UI', sans-serif;
    color: var(--lg-ink);
    background: var(--lg-bg) !important;
    -webkit-font-smoothing: antialiased;
}

/* ── 전체 래퍼 ── */
.login-wrap {
    display: flex;
    width: 100%;
    height: 100vh;
    background:
        radial-gradient(900px 520px at 100% 0%, rgba(26, 86, 219, 0.07), transparent 60%),
        radial-gradient(700px 480px at 70% 100%, rgba(99, 102, 241, 0.05), transparent 60%),
        var(--lg-bg);
}

/* =========================================================
   로그인 제출 — 화면 전환
   ========================================================= */
@keyframes lgHeroOut {
    to { transform: translateX(-24px) scale(0.985); opacity: 0; }
}
@keyframes lgPanelOut {
    to { transform: translateX(24px); opacity: 0; }
}
.login-wrap.is-submitting .login-hero  { animation: lgHeroOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.login-wrap.is-submitting .login-panel { animation: lgPanelOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.06s forwards; }

/* 처음 열릴 때 */
@keyframes lgRise {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

/* =========================================================
   왼쪽 Hero
   ========================================================= */
.login-hero {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, var(--lg-navy-0) 0%, var(--lg-navy-1) 48%, var(--lg-navy-2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 48px 44px;
    color: var(--lg-hero-text);
    isolation: isolate;
}

/* 점 격자 — 가장자리로 갈수록 흐려짐 */
.login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(199, 214, 234, 0.16) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
            mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
    pointer-events: none;
}

/* 배경 캔버스(오로라 빛 · 노드 · 연결선) */
.login-hero-canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.hero-glow-1 {
    width: 520px; height: 520px;
    top: -180px; right: -140px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.55), rgba(37, 99, 235, 0) 70%);
    animation: lgDrift 14s ease-in-out infinite;
}
.hero-glow-2 {
    width: 420px; height: 420px;
    bottom: -160px; left: -120px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28), rgba(56, 189, 248, 0) 70%);
    animation: lgDrift 18s ease-in-out infinite reverse;
}
/* 로고가 있으면 빛 번짐도 로고 색(js/login-hero.js 가 --logo-rgb* 와 has-logo-tint 를 줌). 색을 받기 전에는 감춰 파랑이 비치지 않게 */
.hero-glow { transition: opacity 0.8s ease-out; }
.login-wrap:not(.has-logo-tint) .login-hero[data-logo-rgb] .hero-glow { opacity: 0; }
.login-wrap.has-logo-tint .hero-glow-1 { background: radial-gradient(circle, rgba(var(--logo-rgb), 0.42), rgba(var(--logo-rgb), 0) 70%); }
.login-wrap.has-logo-tint .hero-glow-2 { background: radial-gradient(circle, rgba(var(--logo-rgb-light), 0.22), rgba(var(--logo-rgb-light), 0) 70%); }
@keyframes lgDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-30px, 24px) scale(1.08); }
}

.hero-node {
    position: absolute;
    border-radius: 50%;
    background: rgba(147, 197, 253, 0.35);
    box-shadow: 0 0 10px rgba(147, 197, 253, 0.45);
    animation: lgFloat linear infinite;
}
.hero-node:nth-child(3)  { width:5px; height:5px; left:14%; top:24%; animation-duration:15s; }
.hero-node:nth-child(4)  { width:3px; height:3px; left:32%; top:60%; animation-duration:19s; animation-delay:-5s; }
.hero-node:nth-child(5)  { width:6px; height:6px; left:64%; top:16%; animation-duration:13s; animation-delay:-2s; }
.hero-node:nth-child(6)  { width:4px; height:4px; left:80%; top:44%; animation-duration:21s; animation-delay:-8s; }
.hero-node:nth-child(7)  { width:3px; height:3px; left:46%; top:74%; animation-duration:17s; animation-delay:-4s; }
.hero-node:nth-child(8)  { width:5px; height:5px; left:22%; top:86%; animation-duration:23s; animation-delay:-10s; }
.hero-node:nth-child(9)  { width:4px; height:4px; left:88%; top:70%; animation-duration:16s; animation-delay:-6s; }
.hero-node:nth-child(10) { width:4px; height:4px; left:54%; top:36%; animation-duration:20s; animation-delay:-12s; }
@keyframes lgFloat {
    0%, 100% { transform: translate(0, 0);       opacity: 0.35; }
    25%      { transform: translate(10px, -18px); opacity: 0.9; }
    50%      { transform: translate(20px, -6px);  opacity: 0.5; }
    75%      { transform: translate(6px, -22px);  opacity: 0.8; }
}
/* 노드 네트워크·로고 캔버스(js/login-hero.js) */
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.login-hero.is-hover-logo { cursor: pointer; }
.hero-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
}

/* 상단 브랜드 줄 */
.login-hero-top {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* 왼쪽 위 브랜드 없음 — v2.0 배지만 오른쪽 */
    gap: 12px;
}
.login-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}
.login-hero-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

/* 가운데 제품 미리보기(장식) */
.login-hero-preview {
    position: relative;
    align-self: center;
    width: min(440px, 100%);
    margin: 28px 0;
    animation: lgRise 0.7s ease-out both 0.1s;
}
.lp-card {
    border-radius: 16px;
    /* 뒤 연결선이 비치지 않게 거의 불투명 */
    background: linear-gradient(180deg, rgba(30, 47, 78, 0.92), rgba(19, 33, 58, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(14px);
            backdrop-filter: blur(14px);
}
.lp-main { padding: 18px 18px 16px; }
.lp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
}
.lp-head .lp-dots { display: inline-flex; gap: 5px; }
.lp-head .lp-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.lp-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.lp-kpi {
    padding: 10px 11px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.lp-kpi .k { font-size: 10.5px; color: var(--lg-hero-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
.lp-kpi .bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.lp-kpi .bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.lp-kpi.is-warn .bar > span { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.lp-kpi.is-ok .bar > span   { background: linear-gradient(90deg, #4ade80, #22c55e); }
.lp-rows { display: flex; flex-direction: column; gap: 7px; }
.lp-row {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
}
.lp-row .ic {
    width: 22px; height: 22px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    font-size: 11px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.18);
}
.lp-row .ln { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.lp-row .ln.w70 { width: 70%; } .lp-row .ln.w55 { width: 55%; } .lp-row .ln.w82 { width: 82%; }
.lp-row .tx { font-size: 12px; font-weight: 600; color: #e2e8f0; font-variant-numeric: tabular-nums; letter-spacing: 0; display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.lp-row .tx em { font-style: normal; font-weight: 500; font-size: 11px; color: var(--lg-hero-muted); font-family: inherit; }
.lp-row .pill { padding: 1px 8px; font-size: 10.5px; font-weight: 700; border-radius: 99px; color: #86efac; background: rgba(74, 222, 128, 0.14); border: 1px solid rgba(74, 222, 128, 0.28); }
.lp-row .pill.is-blue { color: #93c5fd; background: rgba(96, 165, 250, 0.16); border-color: rgba(96, 165, 250, 0.32); }

/* 떠 있는 알림 카드 — 자동 수집(담당자가 확인해 반영) */
.lp-float {
    position: absolute;
    right: -26px;
    bottom: -46px; /* 마지막 행 상태 칩을 가리지 않게 카드 아래로 */
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px 11px 11px;
    border-radius: 14px;
    font-size: 12px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    animation: lgBob 6s ease-in-out infinite;
}
.lp-float .ic {
    width: 30px; height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #ffffff;
    background: linear-gradient(140deg, #3b82f6, var(--lg-primary));
}
.lp-float b { display: block; font-size: 12.5px; color: #ffffff; font-weight: 700; margin-bottom: 1px; }
.lp-float span { color: var(--lg-hero-muted); font-size: 11px; }
@keyframes lgBob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* 하단 카피 */
.login-hero-copy { position: relative; max-width: 480px; }
.login-hero-copy-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 12px;
}
.login-hero-copy-title {
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.28;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}
.login-hero-copy-title em {
    font-style: normal;
    background: linear-gradient(90deg, #93c5fd, #60a5fa 50%, #a5b4fc);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
.login-hero-copy-desc {
    font-size: 13.5px;
    color: var(--lg-hero-muted);
    line-height: 1.75;
    word-break: keep-all;
}
.login-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}
.login-hero-tag {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    color: rgba(219, 234, 254, 0.82);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.login-hero-tag.is-new {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.35);
    border-color: rgba(96, 165, 250, 0.5);
}

/* =========================================================
   오른쪽 폼 패널
   ========================================================= */
.login-panel {
    flex: 0 0 clamp(440px, 34vw, 620px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 48px 56px;
    position: relative;
    overflow-y: auto;
}
.login-panel-inner {
    width: 100%;
    max-width: 360px;
    animation: lgRise 0.55s ease-out both;
}


/* 고객사 로고(사이트 관리에서 올린 투명 PNG) */
/* 폼 위 로고: 넓은 화면에서는 왼쪽 패널이 로고를 그리므로 숨기고, 왼쪽 패널이 없는 모바일(900px 이하)에서만 보인다 */
.login-panel-logo {
    display: none;
    height: 30px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 32px;
}

.login-panel-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--lg-ink);
    letter-spacing: -0.03em;
    line-height: 1.3;
    margin-bottom: 8px;
}
.login-panel-sub {
    font-size: 14px;
    color: var(--lg-muted);
    margin-bottom: 30px;
    line-height: 1.55;
}

/* 폼 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.login-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.login-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lg-text);
}
.login-input {
    position: relative;
    display: flex;
    align-items: center;
}
.login-input > .bi:first-child {
    position: absolute;
    left: 14px;
    font-size: 16px;
    color: var(--lg-faint);
    pointer-events: none;
    transition: color 0.18s;
}
.login-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border-radius: 12px;
    border: 1px solid var(--lg-field-line);
    background: #ffffff;
    color: var(--lg-ink);
    font-size: 15px;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.login-field input.has-toggle { padding-right: 46px; }
.login-field input::placeholder { color: var(--lg-faint); }
.login-field input:hover { border-color: #c3cedd; }
.login-field input:focus {
    outline: none;
    border-color: var(--lg-primary);
    box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.12);
}
.login-input:focus-within > .bi:first-child { color: var(--lg-primary); }
/* 브라우저 자동 완성 배경 */
.login-field input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
    -webkit-text-fill-color: var(--lg-ink);
}

/* 비밀번호 보기 */
.login-pw-toggle {
    position: absolute;
    right: 6px;
    width: 36px; height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--lg-faint);
    font-size: 16px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.15s, color 0.15s;
}
.login-pw-toggle:hover { background: #f1f5f9; color: var(--lg-text); }
.login-pw-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.22); color: var(--lg-primary); }

/* Caps Lock 안내 */
.login-caps {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
}
.login-caps.is-on { display: inline-flex; }

/* 아이디 기억 */
.login-remember {
    font-size: 13.5px;
    color: var(--lg-text);
}
.login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.login-remember input[type="checkbox"] {
    width: 16px; height: 16px;
    margin: 0;
    accent-color: var(--lg-primary);
    cursor: pointer;
}

/* 로그인 버튼 */
.login-submit {
    width: 100%;
    height: 50px;
    margin-top: 6px;
    border: none;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: inherit;
    color: #ffffff;
    background: linear-gradient(180deg, #2563eb, var(--lg-primary));
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.18s, transform 0.12s, filter 0.18s;
}
.login-submit .btn-label { display: inline-flex; align-items: center; gap: 8px; }
.login-submit .btn-label .bi { transition: transform 0.18s; }
.login-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 12px 26px rgba(26, 86, 219, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.login-submit:hover .btn-label .bi { transform: translateX(3px); }
.login-submit:active { transform: translateY(1px); }
.login-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.25);
}
.login-submit:disabled { cursor: default; }
/* 제출 중 */
.login-submit .btn-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: lgSpin 0.7s linear infinite;
}
.login-submit.is-loading .btn-label   { display: none; }
.login-submit.is-loading .btn-spinner { display: block; }
@keyframes lgSpin { to { transform: rotate(360deg); } }

/* 메시지 — 폼 위에 둔다(오류를 먼저 읽도록) */
.login-error, .login-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
    word-break: keep-all;
}
.login-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}
.login-error .msg-icon { color: #ef4444; font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.login-info {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.login-info .msg-icon { color: #10b981; font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.login-help {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--lg-line);
    word-break: keep-all;
    font-size: 12.5px;
    color: var(--lg-muted);
    line-height: 1.55;
}
.login-help .bi { color: var(--lg-faint); margin-top: 1px; }

/* 하단 크레딧 */
.login-panel-footer {
    position: absolute;
    bottom: 18px;
    left: 0; right: 0;
    text-align: center;
    font-size: 11px;
    color: #b8c2d0;
    letter-spacing: 0.02em;
}

/* 넓은 화면: 카피 왼쪽 아래 · 미리보기 오른쪽 가운데(가운데 빈 공간 줄임) */
@media (min-width: 1400px) and (min-height: 701px) {
    .login-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas: "top top" "copy preview";
        column-gap: 48px;
        padding: 44px 56px 52px;
    }
    .login-hero-top     { grid-area: top; }
    .login-hero-copy    { grid-area: copy; align-self: end; }
    .login-hero-preview { grid-area: preview; align-self: center; justify-self: center; width: min(500px, 100%); margin: 0 0 40px; }
    .login-hero-copy-title { font-size: clamp(30px, 2.4vw, 42px); }
}

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1180px) {
    .login-panel { width: 440px; padding: 40px 36px 56px; }
    .lp-float { right: -8px; }
}
@media (max-height: 700px) {
    .login-hero-preview { display: none; }
}
@media (max-width: 900px) {
    html, body { overflow: auto; }
    .login-wrap { padding: 0; min-height: 100vh; height: auto; }
    .login-hero { display: none; }
    .login-panel-logo { display: block; }
    .login-panel {
        flex: 1 1 auto;          /* 넓은 화면 최소 폭(440px)이 모바일에서 가로 넘침을 만들던 것 */
        width: 100%;
        min-width: 0;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 32px 16px 56px;
    }
    .login-panel-inner {
        max-width: 400px;
        padding: 28px 20px;
        border-radius: 16px;
        background: #ffffff;
        border: 1px solid var(--lg-line);
        box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
    }
    /* 로고가 있으면 남색 배경이 화면 전체를 채우고, 위쪽 200px 에 로고 연출(js/login-hero.js), 흰 카드는 그 위에 띄운다 — 글귀는 빼고, 카드 안 로고는 숨김 */
    .login-hero[data-logo] {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0;
        height: 100vh;           /* 주소창이 접혀도 크기가 바뀌지 않게 큰 화면 높이 기준 */
        padding: 0;
        z-index: 0;
    }
    .login-hero[data-logo] .login-hero-top,
    .login-hero[data-logo] .login-hero-copy-desc,
    .login-hero[data-logo] .login-hero-tags { display: none; }
    /* 로고 밑 문구(제목 두 줄, 영문 한 줄은 뺌) — 위치는 js/login-hero.js 가 로고 아래(--hero-copy-top)로 준다. 공간이 좁으면(is-no-copy) 숨김 */
    .login-hero[data-logo] .login-hero-copy {
        position: absolute;
        left: 16px; right: 16px;
        top: var(--hero-copy-top, 150px);
        max-width: none;
        text-align: center;
        pointer-events: none;
        transition: opacity 0.6s ease-out 0.15s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
    }
    .login-hero[data-logo] .login-hero-copy-label { display: none; }
    .login-hero[data-logo] .login-hero-copy-title { font-size: 22px; margin-bottom: 0; }
    .login-hero[data-logo].is-no-copy .login-hero-copy { display: none; }
    .login-wrap.is-sheet-wait .login-hero[data-logo] .login-hero-copy { opacity: 0; transform: translateY(10px); }
    .login-hero[data-logo] ~ .login-panel {
        position: relative;
        z-index: 1;
        background: transparent;
        justify-content: flex-end;   /* 카드는 화면 아래에 붙인다(아래에서 올라온 시트) — 위 남는 곳 가운데에 로고 */
        padding: 200px 0 0;
        pointer-events: none;    /* 빈 곳 터치는 배경(로고 다시 재생)으로 */
    }
    .login-hero[data-logo] ~ .login-panel .login-panel-inner,
    .login-hero[data-logo] ~ .login-panel .login-panel-footer { pointer-events: auto; }
    /* 카드: 화면 아래에 붙은 반투명 유리 시트(뒤 배경이 흐리게 비침) + 밝은 글자 */
    .login-hero[data-logo] ~ .login-panel .login-panel-inner {
        max-width: none;
        width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 30px 24px calc(52px + env(safe-area-inset-bottom, 0px));
        background: rgba(15, 23, 42, 0.38);
        -webkit-backdrop-filter: blur(14px) saturate(1.2);
        backdrop-filter: blur(14px) saturate(1.2);
        border: 1px solid rgba(191, 219, 254, 0.16);
        border-bottom: 0;
        box-shadow: 0 -12px 40px rgba(2, 6, 23, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
    .login-hero[data-logo] ~ .login-panel .login-panel-title { color: #ffffff; }
    .login-hero[data-logo] ~ .login-panel .login-panel-sub,
    .login-hero[data-logo] ~ .login-panel .login-help { color: rgba(203, 213, 225, 0.8); }
    .login-hero[data-logo] ~ .login-panel .login-field label,
    .login-hero[data-logo] ~ .login-panel .login-remember { color: #e2e8f0; }
    .login-hero[data-logo] ~ .login-panel .login-field input {
        background: rgba(255, 255, 255, 0.07);
        border-color: rgba(191, 219, 254, 0.22);
        color: #ffffff;
        box-shadow: none;
    }
    .login-hero[data-logo] ~ .login-panel .login-field input::placeholder { color: rgba(203, 213, 225, 0.55); }
    .login-hero[data-logo] ~ .login-panel .login-field input:focus { border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18); }
    .login-hero[data-logo] ~ .login-panel .login-field input:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px #1e2d4a inset;
        -webkit-text-fill-color: #ffffff;
    }
    .login-hero[data-logo] ~ .login-panel .login-input > .bi:first-child,
    .login-hero[data-logo] ~ .login-panel .login-pw-toggle,
    .login-hero[data-logo] ~ .login-panel .login-help .bi { color: rgba(203, 213, 225, 0.6); }
    .login-hero[data-logo] ~ .login-panel .login-input:focus-within > .bi:first-child { color: #93c5fd; }
    .login-hero[data-logo] ~ .login-panel .login-pw-toggle:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
    .login-hero[data-logo] ~ .login-panel .login-help { border-top-color: rgba(191, 219, 254, 0.14); }
    .login-hero[data-logo] ~ .login-panel .login-caps { color: #fbbf24; }
    .login-hero[data-logo] ~ .login-panel .login-panel-footer { color: rgba(191, 219, 254, 0.55); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
    .login-hero[data-logo] ~ .login-panel .login-panel-logo { display: none; }
    /* 로고가 모인 뒤 카드가 아래에서 올라온다 — 기다림 표시(is-sheet-wait)는 js/login-hero.js 가 붙이고 뗀다(스크립트가 없으면 바로 보임) */
    .login-hero[data-logo] ~ .login-panel .login-panel-inner,
    .login-hero[data-logo] ~ .login-panel .login-panel-footer {
        animation: none;
        transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-out;
    }
    .login-wrap.is-sheet-wait .login-hero[data-logo] ~ .login-panel .login-panel-inner { transform: translateY(105%); }
    .login-wrap.is-sheet-wait .login-hero[data-logo] ~ .login-panel .login-panel-footer { opacity: 0; }
}

/* 움직임 줄이기 설정 존중 */
@media (prefers-reduced-motion: reduce) {
    .hero-glow, .hero-node, .lp-float,
    .login-panel-inner, .login-hero-preview { animation: none !important; }
    .login-wrap.is-submitting .login-hero,
    .login-wrap.is-submitting .login-panel { animation-duration: 0.01s !important; }
}

/* =========================================================
   [SAMPLE] 첫 화면(index.jsp) — 로그인 칸 없이 '구경하기' 버튼만, 강조색은 로고 색(js/login-hero.js 가 --logo-rgb* 를 줌)
   ========================================================= */
.login-wrap {
    --tint: var(--logo-rgb, 26, 86, 219);
    --tint-deep: var(--logo-rgb-deep, 30, 64, 175);
    --tint-light: var(--logo-rgb-light, 96, 165, 250);
    --tint-soft: var(--logo-rgb-soft, 147, 197, 253);
}
.login-submit {
    text-decoration: none;
    background: linear-gradient(180deg, rgb(var(--tint)), rgb(var(--tint-deep)));
    box-shadow: 0 8px 20px rgba(var(--tint), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: box-shadow 0.18s, transform 0.12s, filter 0.18s, background 0.4s;
}
.login-submit:hover { box-shadow: 0 12px 26px rgba(var(--tint), 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.login-submit:focus-visible { box-shadow: 0 0 0 4px rgba(var(--tint), 0.28); }
.login-hero-copy-label { color: rgb(var(--tint-soft)); }
.login-hero-copy-title em { background: linear-gradient(90deg, rgb(var(--tint-soft)), rgb(var(--tint-light)) 55%, rgb(var(--tint-soft))); -webkit-background-clip: text; background-clip: text; }
.login-hero-tag.is-new { color: rgb(var(--tint-soft)); border-color: rgba(var(--tint-light), 0.45); background: rgba(var(--tint), 0.22); }
.sample-intro-points { margin: 0 0 26px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--lg-text); }
.sample-intro-points li { display: flex; align-items: center; gap: 10px; }
.sample-intro-points .bi { color: rgb(var(--tint)); font-size: 16px; }
@media (max-width: 900px) {
    .login-hero[data-logo] ~ .login-panel .sample-intro-points { color: #e2e8f0; }
    .login-hero[data-logo] ~ .login-panel .sample-intro-points .bi { color: rgb(var(--tint-light)); }
}
.login-panel-sub { word-break: keep-all; }
/* 로고 색을 받기 전에는 빛 번짐을 감춘다(처음에 파랑이 비치지 않게) — 받으면 서서히 */
.hero-glow { transition: opacity 0.8s ease-out; }
.login-wrap:not(.has-logo-tint) .hero-glow { opacity: 0; }
