﻿/* ==============================
   FONTS
   ============================== */

/* 영어/숫자 → HP Simplified Regular */
@font-face {
    font-family: "HPSimplified";
    src: url("https://raw.githubusercontent.com/HPSAC/fonts/main/HPSimplified_W_Rg.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* 한글 → 나눔스퀘어라운드 Regular/Bold */
@font-face {
    font-family: "NanumSquareRound";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/NanumSquareRound.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF, U+3000-303F;
}

@font-face {
    font-family: "NanumSquareRound";
    src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/NanumSquareRoundB.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7AF, U+3000-303F;
}

/* 전역 변수 & 기본 설정 */
:root {
    --font-base: "HPSimplified","NanumSquareRound",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    --brand: #10b990;
    --ink: #222;
    --ink-2: #2c343f;
    --muted: #8a93a2;
    --line: #bfc7d1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-base);
    background: #fff;
    overflow-x: hidden;
}

/* ==============================
   LAYOUT
   ============================== */

.login-wrap {
    display: flex;
    min-height: 100vh;
}

.login-left {
    flex: 1 1 auto;
    position: relative;
    background: #000 url('/img/bg-ilo.jpg') center/cover no-repeat;
}

.brand-overlay {
    position: absolute;
    left: clamp(16px,4vw,56px);
    top: clamp(14px,3.5vw,48px);
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
    padding: 4px 0;
}

    .brand-overlay .ilo {
        font-size: 20px;
        opacity: .85;
    }

    .brand-overlay .title {
        margin-top: 4px;
        font-weight: 700;
        line-height: 1.02;
        letter-spacing: -.01em;
        font-size: clamp(22px,5.5vw,36px);
        max-width: min(92vw,720px);
    }

    .brand-overlay .version {
        font-size: 14px;
        opacity: .85;
    }

.login-right {
    flex: 0 0 clamp(300px,30%,460px);
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 48px 42px;
    box-shadow: -2px 0 10px rgba(0,0,0,.05);
    transition: all .25s ease;
}

.form-compact {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.label-sm {
    display: block;
    margin: 0 0 6px 0;
    font-weight: 600;
    color: var(--ink-2);
    line-height: 1.25;
}

.form-control {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 12px;
    border-radius: 0;
    line-height: 1.2;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #7aa9a0;
        box-shadow: 0 0 0 .2rem rgba(16,185,144,.15);
    }

.invalid-input {
    border-color: #d9534f !important;
    box-shadow: 0 0 0 .2rem rgba(217,83,79,.15) !important;
}

.btn-ilo {
    width: 100%;
    height: 54px;
    border: 2px solid var(--brand);
    border-radius: 0;
    background: transparent;
    color: var(--brand);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .2px;
    cursor: pointer;
    transition: all .2s ease;
}

    .btn-ilo:hover {
        background: var(--brand);
        color: #fff;
    }

.footer {
    font-size: 12px;
    color: var(--muted);
}

.footer-note {
    margin-top: auto;
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    padding-top: 24px;
}

/* ==============================
   MODAL (Bootstrap 커스텀)
   ============================== */

.modal-backdrop {
    z-index: 1050;
}

.modal {
    z-index: 1060;
}

.modal-backdrop.show {
    opacity: .65;
    background: #000;
}

@keyframes modalPop {
    from {
        transform: translateY(-10px);
        opacity: .95;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal.fade .modal-dialog {
    transition: transform .25s ease-out;
    transform: translateY(-10px);
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal .modal-dialog {
    animation: modalPop .25s ease-out;
}

.modal-content {
    border: none;
    background: #fff;
    box-shadow: 0 8px 26px rgba(0,0,0,.25);
    overflow: hidden;
}

/* ✅ 제목 가운데 정렬 */
.modal-header {
    border-bottom: none;
    padding: 18px 24px;
    justify-content: center; /* 핵심 */
    text-align: center; /* 보조 */
}

.modal-title {
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    color: #222;
}

.modal-body {
    padding: 24px 28px;
    text-align: center;
    font-size: 15px;
    color: #333;
}

.modal-footer {
    border-top: none;
    justify-content: center;
    padding: 0 28px 28px;
}

    .modal-footer .btn {
        min-width: 160px;
        height: 48px;
        border-radius: 0;
        border: 2px solid var(--brand);
        background: transparent;
        color: var(--brand);
        font-weight: 600;
        transition: all .2s ease;
    }

        .modal-footer .btn:hover {
            background: var(--brand);
            color: #fff;
        }

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width:992px) {
    .login-wrap {
        flex-direction: column;
    }

    .login-left {
        min-height: 34vh;
    }

    .login-right {
        flex: 0 0 auto;
        width: 100%;
        box-shadow: none;
        border-top: 1px solid rgba(0,0,0,.06);
        padding: 32px 20px;
        overflow-x: hidden;
    }

    .form-control {
        height: 46px;
    }

    .btn-ilo {
        height: 50px;
        font-size: 17px;
    }
}

@media (max-width:420px) {
    .brand-overlay {
        top: 12px;
        left: 12px;
    }

        .brand-overlay .ilo {
            font-size: 12px;
        }

    .login-right {
        padding: 24px 14px 28px;
    }

    .btn-ilo {
        height: 48px;
        font-size: 16px;
    }
}

/* ==============================
   MICRO
   ============================== */
/* 필요 시 초기 로딩용 효과를 쓰고 싶으면 body.ready 토글로 제어 */
.login-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background .35s ease;
}
