/* =====================================================================
   로그인 · 회원가입 화면 - css/login.css
   ---------------------------------------------------------------------
   login.php · join.php · join_input.php · join_done.php 가 함께 쓴다.
   다른 화면의 css(basic.css 등)는 부르지 않는다.
   basic.css 는 body 폭을 1920px 로 못박아 두어 로그인 화면이 작은 화면에서 넘친다.

   구성은 CAREBUY 로그인 화면과 같다 : 왼쪽 넓은 칸(그림) + 오른쪽 칸(입력)
   색은 이 시스템의 색에 맞췄다
     강조 파랑 #4694c2 · 짙은 파랑 #335c77 · 제목줄 남색 #353942 · 왼쪽 바탕 #fffae9 (CAREBUY 와 같음)
   ===================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
.lg_body {
    min-height: 100%;
    background-color: #ffffff;
    color: #333;
    font-family: 'S-CoreDream-4Regular', NanumBarunGothic, 'Nanum Gothic', '맑은 고딕', sans-serif;
    letter-spacing: -0.3px;
}
.lg_body a { color: inherit; }

/* ---------- 전체 틀 ---------- */
.lg_wrap { display: flex; min-height: 100vh; }

/* ---------- 왼쪽 : 그림 ----------
   그림(images/login/login_main.*)을 칸 가운데에 여백을 두고 놓는다. (2026-09-22)
     - 칸 바탕색을 그림 바탕색(#fdf7e3)과 똑같이 맞췄다. 그림이 바탕에 떠 있지 않고 녹아 보이게
     - 그림 가장자리(양옆 · 아래)를 서서히 투명하게 해 잘린 선이 보이지 않게 한다 (mask)
     - 그림은 잘리지 않게(contain), 여백은 조금만
   그림 위 사업 이름 두 줄은 사용자 요청으로 뺐다.
   ※ 그림을 바꾸면 바탕색도 새 그림의 바탕색으로 맞춘다. */
.lg_side {
    position: relative;
    flex: 2 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 36px 36px;
    background-color: #fdf7e3;                    /* = 그림 바탕색 */
}
.lg_brand {
    position: absolute; top: 24px; left: 28px; z-index: 1;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: #4694c2;
    color: #fff;
    font-family: 'S-CoreDream-5Medium', sans-serif;
    font-size: 16px;
}
.lg_side_inner    { width: 100%; max-width: 1300px; display: flex; justify-content: center; }
.lg_art {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 110px);          /* 위 70 + 아래 36 */
    object-fit: contain;
    /* 양옆 2% · 아래 4% 를 서서히 투명하게 (두 방향 모양이 겹치는 곳만 보이게) */
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2%, #000 98%, transparent 100%),
                        linear-gradient(to bottom, #000 0, #000 96%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, transparent 0, #000 2%, #000 98%, transparent 100%),
                        linear-gradient(to bottom, #000 0, #000 96%, transparent 100%);
            mask-composite: intersect;
}
svg.lg_art        { -webkit-mask-image: none; mask-image: none; }     /* 그림 파일이 없을 때 쓰는 SVG */

/* ---------- 오른쪽 : 입력 칸 ---------- */
.lg_panel {
    flex: 1 1 0;
    min-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    border-left: 1px solid #dfe6ec;
    background-color: #ffffff;
}
.lg_box   { width: 100%; max-width: 380px; }
.lg_head  { margin-bottom: 28px; text-align: center; }
.lg_title { display: block; color: #353942; font-size: 32px; font-family: 'S-CoreDream-7ExtraBold', sans-serif; }
.lg_sub   { display: block; margin-top: 8px; color: #888; font-size: 14px; }

.lg_label { display: block; margin: 16px 0 6px; color: #444; font-size: 14px; font-weight: bold; }
.lg_input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ccd1d9;
    border-radius: 6px;
    background-color: #fff;
    color: #222;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.lg_input:focus    { border-color: #4694c2; box-shadow: 0 0 0 3px rgba(70,148,194,.18); }
.lg_input.lg_bad   { border-color: #d9534f; }

.lg_pw             { position: relative; }
.lg_pw .lg_input   { padding-right: 64px; }
.lg_eye {
    position: absolute; top: 7px; right: 7px;
    height: 30px; padding: 0 10px;
    border: 1px solid #e1e5ea; border-radius: 4px;
    background: #f7f9fb; color: #666;
    font-size: 12px; cursor: pointer;
}
.lg_eye:hover      { border-color: #4694c2; color: #4694c2; }

.lg_keep           { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; color: #666; font-size: 13px; cursor: pointer; }

.lg_err            { min-height: 18px; margin: 10px 0 0; color: #d9534f; font-size: 13px; }
.lg_err:empty      { min-height: 0; margin: 0; }

/* 주소 값(why · err)으로 띄우는 안내 */
.lg_msg            { margin: 0 0 6px; padding: 11px 14px; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.lg_msg_info       { background: #eef5fb; color: #335c77; }
.lg_msg_ok         { background: #ecf7ef; color: #2e7d4f; }
.lg_msg_bad        { background: #fdeeee; color: #b33a37; }

/* ---------- 버튼 ---------- */
.lg_btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 46px;
    margin-top: 16px;
    border: 0; border-radius: 6px;
    font-size: 15px; font-family: inherit; font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s;
}
.lg_btn + .lg_btn   { margin-top: 10px; }
.lg_btn_main        { background-color: #4694c2; color: #fff; }
.lg_btn_main:hover  { background-color: #3b7fa6; }
.lg_body .lg_btn_dark       { background-color: #353942; color: #fff; }
.lg_body .lg_btn_dark:hover { background-color: #22252c; }
.lg_btn_line        { background-color: #fff; color: #353942; border: 1px solid #ccd1d9; }
.lg_btn_line:hover  { border-color: #4694c2; color: #4694c2; }
.lg_btn:disabled    { background-color: #b9c3cc; cursor: default; }

.lg_note { margin: 26px 0 0; color: #999; font-size: 12px; line-height: 1.7; text-align: center; }


/* =====================================================================
   회원가입 (join.php · join_input.php · join_done.php)
   ===================================================================== */
.jn_panel { flex: 1.3 1 0; min-width: 560px; align-items: flex-start; overflow-y: auto; max-height: 100vh; }
.jn_box   { width: 100%; max-width: 620px; padding: 20px 0 40px; }

/* 단계 표시 : ① 가입 종류 → ② 정보 입력 → ③ 완료 */
.jn_steps       { display: flex; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.jn_steps li {
    flex: 1;
    padding: 10px 0;
    border-radius: 6px;
    background: #f1f4f7;
    color: #999;
    font-size: 13px;
    text-align: center;
}
.jn_steps li b  { display: inline-block; width: 20px; height: 20px; line-height: 20px; margin-right: 6px; border-radius: 50%; background: #ccd2d9; color: #fff; font-size: 12px; }
.jn_steps .jn_on   { background: #353942; color: #fff; font-weight: bold; }
.jn_steps .jn_on b { background: #4694c2; }
.jn_steps .jn_done b { background: #6fae8a; }

/* 가입 종류 고르기 카드 */
.jn_cards      { display: flex; gap: 16px; }
.jn_card {
    flex: 1;
    display: block;
    padding: 26px 22px;
    border: 2px solid #e1e5ea;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.jn_card:hover { border-color: #4694c2; box-shadow: 0 6px 18px rgba(53,57,66,.08); transform: translateY(-2px); }
.jn_card_icon  { width: 48px; height: 48px; margin-bottom: 14px; }
.jn_card_title { display: block; color: #353942; font-size: 19px; font-weight: bold; }
.jn_card_desc  { display: block; margin-top: 10px; color: #777; font-size: 13px; line-height: 1.7; }
.jn_card_tag   { display: inline-block; margin-top: 14px; padding: 3px 10px; border-radius: 12px; font-size: 12px; }
.jn_tag_login  { background: #e6f1f8; color: #335c77; }
.jn_tag_nolog  { background: #f4f1ea; color: #8a6a4f; }

/* 입력 표 */
.jn_sec       { margin: 26px 0 10px; padding-bottom: 8px; border-bottom: 2px solid #353942; color: #353942; font-size: 15px; font-weight: bold; }
.jn_sec:first-of-type { margin-top: 0; }
.jn_row       { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f2f4; }
.jn_row > label, .jn_row > .jn_th {
    flex: none; width: 120px; padding-top: 12px;
    color: #444; font-size: 14px; font-weight: bold;
}
.jn_req       { color: #d9534f; }
.jn_td        { flex: 1; min-width: 0; }
.jn_td .lg_input { height: 40px; font-size: 14px; }
.jn_inline    { display: flex; gap: 6px; align-items: center; }
.jn_inline .lg_input { flex: 1; min-width: 0; }
.jn_inline .jn_zip   { flex: none; width: 110px; }
.jn_mini {
    flex: none;
    height: 40px; padding: 0 14px;
    border: 1px solid #ccd1d9; border-radius: 6px;
    background: #fff; color: #353942;
    font-size: 13px; font-weight: bold; font-family: inherit;
    white-space: nowrap; cursor: pointer;
}
.jn_mini:hover { border-color: #4694c2; color: #4694c2; }
.jn_radio      { display: inline-flex; align-items: center; gap: 5px; margin: 11px 18px 0 0; font-size: 14px; cursor: pointer; }
.jn_hint       { margin: 5px 0 0; color: #999; font-size: 12px; }
.jn_hint_ok    { color: #2e9d57; }
.jn_hint_bad   { color: #d9534f; }
.jn_gap        { height: 8px; }

.jn_btns       { display: flex; gap: 10px; margin-top: 28px; }
.jn_btns .lg_btn { margin-top: 0; }

/* 가입 완료 */
.jn_finish      { text-align: center; padding: 30px 0; }      /* .jn_done 은 단계 표시(끝난 단계)가 쓰므로 이름을 달리 둔다 */
.jn_done_icon    { display: block; width: 72px; height: 72px; margin: 0 auto 18px; }
.jn_finish h2    { margin: 0 0 12px; color: #353942; font-size: 24px; }
.jn_finish p     { margin: 0 0 6px; color: #666; font-size: 14px; line-height: 1.8; }


/* ---------- 좁은 화면 : 왼쪽 그림을 숨긴다 ---------- */
@media (max-width: 991px) {
    .lg_side  { display: none; }
    .lg_panel, .jn_panel { min-width: 0; border-left: 0; }
    .jn_cards { flex-direction: column; }
    .jn_row   { flex-direction: column; gap: 4px; }
    .jn_row > label, .jn_row > .jn_th { width: auto; padding-top: 4px; }
}
