:root {
    --navy-950: #07152d;
    --navy-900: #0a1e3e;
    --navy-800: #102d58;

    --blue-600: #2563eb;
    --blue-500: #3478f6;
    --blue-100: #dbeafe;

    --cyan-400: #38bdf8;

    --background: #f2f6fb;
    --surface: #ffffff;
    --text: #14233a;
    --muted: #6b7a90;
    --border: #dce4ef;

    --danger: #d93b50;
    --danger-bg: #fff1f3;
    --success: #16855b;
    --success-bg: #ecfdf5;

    --shadow: 0 30px 70px rgba(21, 42, 78, 0.13);
}


/* 기본 설정 */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    font-family:
            Pretendard,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            sans-serif;

    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}


/* 전체 로그인 레이아웃 */

.login-page {
    display: grid;
    grid-template-columns: minmax(460px, 0.95fr) minmax(520px, 1.05fr);
    min-height: 100vh;
    min-height: 100dvh;
}


/* =====================================================
   왼쪽 브랜드 영역
   ===================================================== */

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 100%;
    padding: 44px 56px 30px;
    overflow: hidden;
    color: #ffffff;

    background:
            linear-gradient(
                    rgba(255, 255, 255, 0.025) 1px,
                    transparent 1px
            ),
            linear-gradient(
                    90deg,
                    rgba(255, 255, 255, 0.025) 1px,
                    transparent 1px
            ),
            radial-gradient(
                    circle at 85% 20%,
                    rgba(56, 189, 248, 0.18),
                    transparent 32%
            ),
            linear-gradient(
                    145deg,
                    var(--navy-950),
                    var(--navy-800)
            );

    background-size:
            44px 44px,
            44px 44px,
            auto,
            auto;
}

.brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
}


/* 회사 로고 */

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.brand-logo-image {
    display: block;
    width: min(100%, 390px);
    height: auto;
    object-fit: contain;

    filter:
            drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25))
            drop-shadow(0 0 1px rgba(255, 255, 255, 0.22));
}

.brand-description {
    margin: 13px 4px 0;
    color: rgba(220, 235, 255, 0.72);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.5;
    letter-spacing: -0.1px;
}


/* 브랜드 소개 문구 */

.brand-copy {
    margin-top: clamp(44px, 6vh, 72px);
}

.brand-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.14;
    letter-spacing: -2.5px;
}

.brand-copy p {
    margin: 0;
    color: rgba(229, 238, 252, 0.68);
    font-size: 15px;
    line-height: 1.75;
}


/* 주요 기능 */

.feature-list {
    display: grid;
    gap: 14px;
    margin-top: clamp(36px, 5vh, 52px);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    color: #82d9ff;
    background: rgba(255, 255, 255, 0.06);
    font-size: 10px;
    font-weight: 800;
}

.feature-item strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.feature-item p {
    margin: 0;
    color: rgba(229, 238, 252, 0.52);
    font-size: 12px;
    line-height: 1.4;
}


/* 왼쪽 하단 문구 */

.brand-footer {
    position: relative;
    z-index: 2;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}


/* 왼쪽 배경 장식 */

.brand-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.decor-circle {
    position: absolute;
    border: 1px solid rgba(125, 211, 252, 0.1);
    border-radius: 50%;
}

.decor-circle-one {
    right: -170px;
    bottom: -190px;
    width: 460px;
    height: 460px;
}

.decor-circle-two {
    right: -80px;
    bottom: -100px;
    width: 280px;
    height: 280px;
}


/* =====================================================
   오른쪽 로그인 영역
   ===================================================== */

.login-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 44px 24px;
}

.login-card {
    width: min(100%, 450px);
    padding: 42px 44px;
    border: 1px solid rgba(216, 226, 239, 0.85);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}


/* 로그인 제목 */

.login-header {
    margin-bottom: 28px;
}

.login-eyebrow {
    color: var(--blue-600);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.login-header h2 {
    margin: 10px 0 8px;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -1.3px;
}

.login-header p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}


/* 로그인 결과 메시지 */

.login-message {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.login-message.error {
    color: var(--danger);
    background: var(--danger-bg);
}

.login-message.success {
    color: var(--success);
    background: var(--success-bg);
}

.message-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}


/* 로그인 폼 */

.login-form {
    display: grid;
    gap: 19px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-size: 13px;
    font-weight: 750;
}

.form-field input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    outline: none;
    color: var(--text);
    background: #f9fbfd;
    font-size: 15px;

    transition:
            border-color 0.18s ease,
            box-shadow 0.18s ease,
            background 0.18s ease;
}

.form-field input::placeholder {
    color: #a2adbc;
}

.form-field input:hover {
    border-color: #bdcadb;
}

.form-field input:focus {
    border-color: var(--blue-500);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(52, 120, 246, 0.12);
}


/* 비밀번호 보기 */

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    min-width: 50px;
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--blue-600);
    background: var(--blue-100);
}


/* 로그인 버튼 */

.login-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 56px;
    margin-top: 7px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-600), #1d4ed8);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
    font-weight: 800;
    cursor: pointer;

    transition:
            transform 0.18s ease,
            box-shadow 0.18s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.button-arrow {
    font-size: 20px;
}


/* 관리자 문의 */

.login-help {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.login-help strong {
    color: #4e6078;
}


/* =====================================================
   모바일 상단 로고
   ===================================================== */

.mobile-brand {
    display: none;
}

.mobile-brand-image {
    display: block;
    width: 215px;
    max-width: 68%;
    height: auto;
    object-fit: contain;
}


/* =====================================================
   로그인 화면 푸터 fragment
   ===================================================== */

.login-panel .company-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: min(100%, 450px);
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.login-panel .footer-logo {
    display: block;
    width: 46px;
    height: auto;
    opacity: 0.72;
}

.login-panel .footer-info {
    display: grid;
    gap: 3px;
    font-size: 10px;
    line-height: 1.4;
}


/* =====================================================
   태블릿
   ===================================================== */

@media (max-width: 1080px) {
    .login-page {
        grid-template-columns: minmax(400px, 0.85fr) minmax(480px, 1.15fr);
    }

    .brand-panel {
        padding: 40px 40px 28px;
    }

    .brand-logo-image {
        width: min(100%, 340px);
    }

    .brand-copy h1 {
        font-size: clamp(38px, 4.5vw, 50px);
    }

    .login-panel {
        padding-right: 30px;
        padding-left: 30px;
    }

    .login-card {
        padding-right: 38px;
        padding-left: 38px;
    }
}


/* =====================================================
   모바일
   ===================================================== */

@media (max-width: 900px) {
    .login-page {
        display: block;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        justify-content: flex-start;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 28px 20px 20px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: min(100%, 450px);
        margin-bottom: 30px;
    }

    .login-card {
        padding: 34px 24px;
        border-radius: 22px;
        box-shadow: 0 20px 50px rgba(21, 42, 78, 0.11);
    }

    .login-header h2 {
        font-size: 30px;
    }

    .login-panel .company-footer {
        margin-top: auto;
        padding-top: 24px;
    }

    .login-panel .footer-logo {
        width: 40px;
    }

    .login-panel .footer-info {
        font-size: 9px;
    }
}


/* =====================================================
   낮은 높이의 PC 화면
   ===================================================== */

@media (min-width: 901px) and (max-height: 760px) {
    .brand-panel {
        padding-top: 30px;
        padding-bottom: 22px;
    }

    .brand-logo-image {
        width: min(100%, 315px);
    }

    .brand-description {
        margin-top: 8px;
    }

    .brand-copy {
        margin-top: 28px;
    }

    .brand-copy h1 {
        margin-bottom: 11px;
        font-size: 42px;
    }

    .brand-copy p {
        font-size: 13px;
        line-height: 1.6;
    }

    .feature-list {
        gap: 10px;
        margin-top: 25px;
    }

    .feature-icon {
        width: 34px;
        height: 34px;
    }

    .feature-item strong {
        font-size: 13px;
    }

    .feature-item p {
        font-size: 11px;
    }

    .brand-footer {
        margin-top: 16px;
    }

    .login-card {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .login-header {
        margin-bottom: 23px;
    }

    .login-panel .company-footer {
        margin-top: 14px;
        padding-top: 12px;
    }
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: -2px;
}

.login-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    user-select: none;
}

.login-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.check-box {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1px solid #c9d4e3;
    border-radius: 5px;
    background: #ffffff;

    transition:
            border-color 0.18s ease,
            background 0.18s ease,
            box-shadow 0.18s ease;
}

.login-check:hover .check-box {
    border-color: var(--blue-500);
}

.login-check input:checked + .check-box {
    border-color: var(--blue-600);
    background: var(--blue-600);
}

.login-check input:checked + .check-box::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-check input:focus-visible + .check-box {
    box-shadow: 0 0 0 4px rgba(52, 120, 246, 0.14);
}

@media (max-width: 380px) {
    .login-options {
        gap: 10px;
    }

    .login-check {
        font-size: 11px;
    }
}

/* =====================================================
   작은 모바일
   ===================================================== */

@media (max-width: 380px) {
    .login-panel {
        padding-right: 14px;
        padding-left: 14px;
    }

    .mobile-brand {
        margin-bottom: 24px;
    }

    .mobile-brand-image {
        width: 195px;
    }

    .login-card {
        padding: 30px 20px;
    }

    .login-help {
        flex-direction: column;
        align-items: center;
        gap: 3px;
    }
}


/* 키보드 접근성 */

.password-toggle:focus-visible,
.login-button:focus-visible {
    outline: 3px solid rgba(52, 120, 246, 0.28);
    outline-offset: 3px;
}


/* 모션 최소화 설정 */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}