﻿@charset 'UTF-8';

/* ════════════════════════════════
   PC 기본 레이아웃 (1000px 이상)
════════════════════════════════ */

.login-page {
    display: flex;
    min-height: 100vh;
}

/* ── 좌측 브랜드 영역 ── */
.login-brand {
    width: 45%;
    background: linear-gradient(160deg, #0f2345 0%, #1e3a6e 50%, #2a5298 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.login-brand::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 360px;
    height: 360px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.brand-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.brand-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.brand-divider {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 20px auto;
    position: relative;
    z-index: 1;
}

/* ── 우측 폼 영역 ── */
.login-form-area {
    width: 55%;
    background: #f8f9fc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-form-inner {
    width: 100%;
    max-width: 380px;
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a2f4e;
    margin-bottom: 8px;
}

.form-desc {
    font-size: 13px;
    color: #999;
    margin-bottom: 36px;
}

/* ── 폼 그룹 ── */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    margin-bottom: 7px;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    height: 50px;
    background: #fff;
    border: 1.5px solid #e2e6ef;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    color: #333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

/* ── 에러 메시지 ── */
.error-msg {
    min-height: 18px;
    font-size: 12px;
    color: #e53935;
    margin-bottom: 20px;
    padding-left: 2px;
}

/* ── 로그인 버튼 ── */
.btn-login {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #1e3a6e, #2a5298);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
    cursor: pointer;
    letter-spacing: 1px;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-login:hover  { opacity: 0.9; }
.btn-login:active { transform: scale(0.99); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; }


/* ════════════════════════════════
   모바일 (1000px 이하)
════════════════════════════════ */
@media (max-width: 1000px) {

    .login-page {
        flex-direction: column;
        min-height: 100vh;
        min-height: 100dvh; /* 모바일 주소바 대응 */
    }

    /* ── 상단 브랜드 ── */
    .login-brand {
        width: 100%;
        min-height: 240px;
        padding: 50px 28px 60px;
        border-radius: 0;
    }

    .brand-title {
        font-size: 26px;
    }

    .brand-sub {
        font-size: 13px;
    }

    /* ── 하단 폼: 브랜드 위로 올라오는 시트 형태 ── */
    .login-form-area {
        width: 100%;
        flex: 1;
        background: #fff;
        border-radius: 24px 24px 0 0;
        margin-top: -24px;
        padding: 36px 28px 40px;
        align-items: flex-start;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    }

    .login-form-inner {
        max-width: 100%;
        width: 100%;
    }

    .form-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .form-desc {
        margin-bottom: 28px;
    }

    .form-group input {
        height: 52px;
        font-size: 16px; /* iOS 자동 줌 방지 */
    }

    .btn-login {
        height: 54px;
        font-size: 16px;
    }
}
