* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

:root {
    --ky-navy: #173768;
    --ky-navy-dark: #112c55;
    --ky-blue: #1565c0;
    --ky-title: #171f36;
    --ky-text: #3a4252;
    --ky-sub: #8d96a3;
    --ky-line: #dfe5ee;
}

#login-body {
    height: 100vh;
    width: 100vw;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 전체 래퍼 — 배경 이미지 풀스크린 (로고/문구/카드가 빠진 배경 단독 이미지) */
.login-wrap {
    position: fixed;
    inset: 0;
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 9999;
    background: url('/static/img/login_bg.png') center center / cover no-repeat;
}

/* ================= 좌측 ================= */
.login-left {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 90px 40px 60px 5vw;
    overflow: hidden;
}

.left-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

.left-logo .logo-main {
    height: 46px;
    width: auto;
    display: block;
}

.left-copy {
    margin-top: 72px;
}

/* 짧은 선 + MES SYSTEM */
.sub-text {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #8a93a1;
    margin-bottom: 34px;
}

.sub-text::before {
    content: '';
    width: 42px;
    border-top: 1.5px solid var(--ky-navy);
}

.main-title {
    font-size: clamp(30px, 3.3vw, 44px);
    font-weight: 800;
    color: var(--ky-title);
    line-height: 1.38;
    letter-spacing: -0.03em;
    margin-bottom: 26px;
}

.desc-text {
    font-size: 16px;
    color: var(--ky-text);
    line-height: 1.75;
    letter-spacing: -0.01em;
}

/* ================= 우측 ================= */
.login-right {
    width: 600px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 50px 0 0;
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    min-height: 78vh;
    padding: 44px 42px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(8, 28, 64, 0.28);
}

.card-logo {
    text-align: center;
}

.logo-color {
    height: 40px;
    width: auto;
}

.card-divider {
    display: block;
    width: 32px;
    margin: 30px auto 14px;
    border: none;
    border-top: 1.5px solid #c3cad6;
}

.card-sub {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #8a93a1;
    text-align: center;
    margin-bottom: 34px;
    padding-left: 0.3em;
}

/* input */
.input-wrap {
    position: relative;
    margin-bottom: 12px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7380;
    font-size: 14px;
    pointer-events: none;
}

.login-input {
    width: 100%;
    height: 60px;
    border: 1px solid var(--ky-line);
    border-radius: 8px;
    padding: 0 44px 0 46px;
    font-size: 14px;
    color: var(--ky-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.login-input:focus {
    border-color: var(--ky-navy);
    box-shadow: 0 0 0 3px rgba(23, 55, 104, 0.1);
}

.login-input::placeholder {
    color: #aab2bd;
}

.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #4b5360;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

/* 로그인 버튼 */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 62px;
    margin-top: 16px;
    background: var(--ky-navy);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.15s;
}

.login-btn:disabled {
    cursor: not-allowed;
}

.login-btn:not(:disabled):hover {
    background: var(--ky-navy-dark);
    transform: translateY(-1px);
}

.login-btn:not(:disabled):active {
    transform: translateY(0);
}

/* 옵션 */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.save-id-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ky-text);
    cursor: pointer;
}

.save-id-label input[type=checkbox] {
    accent-color: var(--ky-navy);
    width: 16px;
    height: 16px;
}

.find-link {
    font-size: 13px;
    color: var(--ky-navy);
    text-decoration: none;
}

.find-link i {
    font-size: 10px;
    margin-left: 4px;
}

/* 카드 하단(배경 위) 사업영역 */
.login-features {
    display: flex;
    width: 100%;
    margin-top: 34px;
    list-style: none;
}

.login-features li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #dbe5f5;
    font-size: 11px;
    position: relative;
}

.login-features li + li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.28);
}

.login-features i {
    font-size: 22px;
    color: #fff;
    margin-bottom: 4px;
}

.login-features b {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #fff;
}

@media (max-width: 768px) {
    .login-left { display: none; }
    .login-right {
        width: 100%;
        padding: 24px 16px;
    }
    .login-card {
        min-height: auto;
        padding: 40px 28px 28px;
    }
}

#loginLoader {
    pointer-events: none;
}

#loginLoader[hidden] {
    display: none;
}
