@charset "utf-8";

/* 기본 초기화 */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

body {
    font-family: "Pretendard", "Noto Sans KR", sans-serif;
    background: #f3f3f3;
    color: #222;
    line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

/* 레이아웃 구조 */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: flex-end; /* 패널을 우측으로 밀어냄 */
    background: #f5f5f5 url('/assets/images/login-visual.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

/* 배경 오버레이 */
.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 248, 230, 0.25); /* 따뜻한 느낌 유지 */
    z-index: 1;
}

/* 좌측 비주얼 영역 (PC) */
.login-visual {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    padding: 60px;
}

.login-visual__text {
    position: absolute;
    left: 60px;
    top: 56px;
    color: #222;
}

.login-visual__brand {
    margin: 0 0 10px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.login-visual__desc {
    margin: 0;
    font-size: 17px;
    color: rgba(34, 34, 34, 0.85);
    line-height: 1.6;
}

/* 우측 로그인 패널 (핵심) */
.login-panel {
    width: 520px;
    min-width: 520px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    position: relative;
    z-index: 3;
    box-shadow: -10px 0 40px rgba(0,0,0,0.05);
}

.login-box {
    width: 100%;
    max-width: 410px;
}

.login-box__top {
    margin-bottom: 36px;
    text-align: center;
}

.login-box__logo {
    margin: 0 0 14px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.login-box__logo span { color: #2f6fed; }
.login-box__sub { margin: 0; font-size: 15px; color: #777; line-height: 1.6; }

.login-title {
    margin: 0 0 18px;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #222;
}

/* 입력 필드 및 아이콘 */
.form-group { margin-bottom: 14px; }
.input-label { display: block; margin-bottom: 7px; font-size: 13px; color: #666; font-weight: 500; }
.input-wrap { position: relative; }

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #2f6fed;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    height: 58px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    padding: 0 16px;
    font-size: 15px;
    color: #222;
    transition: all .2s ease;
}

.form-input.has-icon { padding-left: 48px; }

.form-input:focus {
    outline: none;
    border-color: #2f6fed;
    box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.10);
}

.form-input[readonly] { background: #f9f9f9; color: #888; }

/* 옵션 및 버튼 */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 4px 0 20px;
}

.check-wrap { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #555; cursor: pointer; }
.check-wrap input[type="checkbox"] { width: 16px; height: 16px; accent-color: #2f6fed; }
.login-help { font-size: 13px; color: #e15b64; }

.login-btn {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2f6fed, #174dcc);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
    box-shadow: 0 10px 24px rgba(47, 111, 237, 0.22);
}

.login-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(47, 111, 237, 0.26); }

/* 하단 링크 및 카피라이트 */
.login-links { margin-top: 18px; text-align: center; font-size: 13px; color: #666; }
.login-links a { display: inline-block; margin: 0 8px; }
.login-links a:hover { color: #2f6fed; }
.login-copy { margin-top: 40px; text-align: center; font-size: 12px; color: #aaa; }

/* -----------------------------------------------------------
   반응형 모바일 대응 (그누보드 버전의 장점 반영)
----------------------------------------------------------- */
@media (max-width: 1024px) {
    .login-visual { display: none; } /* 텍스트 겹침 방지를 위해 좌측 영역 제거 */
    
    .login-page {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px;
    }

    .login-panel {
        width: 100%;
        min-width: 0;
        min-height: auto;
        border-radius: 20px;
        padding: 40px 24px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 640px) {
    .login-box__logo { font-size: 28px; }
    .login-title { font-size: 30px; }
    .login-options { flex-direction: column; align-items: flex-start; gap: 8px; }
    .form-input { height: 54px; }
    .login-btn { height: 54px; }
}

.login-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.login-alert--error {
    background: #fff4f4;
    border: 1px solid #ffd7d7;
    color: #d14343;
}