@charset "UTF-8";
/* =====================================================================
   DRAGON 로그인·가입(독립 페이지) 테마 — login_style.css 위에 덮어쓰기
   [설계결정] 2026-11 드래곤 리뉴얼. 색은 winner.css 와 같은 변수 체계(:root --wn-*)
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
    --wn-bg-press: #0c0706;
    --wn-bg: #120b0a;
    --wn-elev-1: #1c1210;
    --wn-elev-3: #3a2622;
    --wn-text: #f6ece2;
    --wn-text-sub: #c9b8ab;
    --wn-text-mute: #a39184;
    --wn-on-accent: #fff6ec;
    --wn-border: #3a2824;
    --wn-input-border: #8a685c;
    --wn-gold: #e6b84f;
    --wn-gold-line: rgba(230, 184, 79, .30);
    --wn-danger: #ff7a90;
    --wn-btn-accent: linear-gradient(180deg, #d42d36 0%, #c8232c 55%, #a81b23 100%);
    --wn-font: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    --wn-font-head: 'Noto Sans KR', 'Malgun Gothic', sans-serif; /* 한글 제목은 고딕 (세리프는 한글에서 거칠게 보여 폐기) */
}

html, body.wn-auth { background: var(--wn-bg); }
body.wn-auth { font-family: var(--wn-font); color: var(--wn-text); min-height: 100vh; margin: 0; }
body.wn-auth * { font-family: inherit; }

/* 배경: 이미지 + 아래로 갈수록 어둡게 */
body.wn-auth section.sub {
    background: linear-gradient(180deg, rgba(18, 11, 10, .35) 0%, rgba(18, 11, 10, .85) 70%), url(/images/dragon/login-bg.jpg) center / cover no-repeat fixed !important;
    min-height: 100vh; box-sizing: border-box; padding: 40px 16px 120px; display: flex; align-items: center; justify-content: center;
}
body.wn-auth section.sub::before, body.wn-auth section.sub::after { display: none !important; content: none !important; }
body.wn-auth .sub__container { width: 100%; max-width: 440px; margin: 0 auto; padding: 0; position: static; transform: none; }
body.wn-auth section.join .sub__container { max-width: 560px; }

/* 카드 */
body.wn-auth .sub__flex-content {
    background: rgba(28, 18, 16, .9) !important; border: 0 !important; border-radius: 14px !important;
    box-shadow: 0 0 0 1px rgba(230, 184, 79, .38), 0 24px 48px rgba(0, 0, 0, .6) !important;
    padding: 32px 28px !important; width: auto !important; height: auto !important; max-width: none !important;
    display: flex; flex-direction: column; gap: 16px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
body.wn-auth .row-box__title { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 0 8px; }
body.wn-auth .sub__logo { background: url(/images/dragon/logo.png) center / contain no-repeat !important; width: 240px !important; height: 74px !important; max-width: 100%; margin: 0 auto !important; }
body.wn-auth .row-box__title h2, body.wn-auth .row-box__title h3 { color: var(--wn-text-mute) !important; font-size: 13px !important; letter-spacing: .3em; font-weight: 600; margin: 0; }

/* 입력 */
body.wn-auth .input-text-box { margin: 0 0 12px !important; width: auto !important; }
body.wn-auth .input-text-box label, body.wn-auth .label_p { color: var(--wn-text-sub) !important; font-size: 13px !important; font-weight: 600; margin-bottom: 6px; display: block; text-shadow: none !important; }
body.wn-auth input[type=text], body.wn-auth input[type=password], body.wn-auth input[type=tel], body.wn-auth select {
    width: 100% !important; box-sizing: border-box; min-height: 48px; height: 48px !important; padding: 0 14px !important;
    background: var(--wn-bg-press) !important; border: 1px solid var(--wn-input-border) !important; border-radius: 8px !important;
    color: var(--wn-text) !important; font-size: 15px !important; box-shadow: none !important;
}
body.wn-auth input::placeholder { color: var(--wn-text-mute) !important; font-weight: 400 !important; }
body.wn-auth input:focus, body.wn-auth select:focus { outline: none; border-color: var(--wn-gold) !important; }
body.wn-auth select option { background: var(--wn-bg); color: var(--wn-text); }
body.wn-auth .input-text-box__help, body.wn-auth .bul { color: var(--wn-text-mute) !important; font-size: 12px !important; margin-top: 4px; }
body.wn-auth .input-text-box > div, body.wn-auth .selectBox { display: flex; gap: 8px; align-items: center; }
body.wn-auth .input-text-box { position: static !important; display: block !important; height: auto !important; }
body.wn-auth .input-text-box label, body.wn-auth .label_p { position: static !important; transform: none !important; width: auto !important; height: auto !important; line-height: 1.4 !important; }

/* 공통: 라벨-입력 6px, 칸 사이 간격 통일, 입력칸 = 카드 폭 */
body.wn-auth .row-box__item { width: 100% !important; max-width: none !important; min-width: 0; padding: 0 !important; margin: 0 !important; border: 0 !important; float: none !important; }
body.wn-auth .input-text-box { width: 100% !important; margin: 0 0 16px !important; padding: 0 !important; }
body.wn-auth .input-text-box label, body.wn-auth .label_p { margin: 0 0 6px !important; padding: 0 !important; }
body.wn-auth .input-text-box__help, body.wn-auth .bul { margin: 6px 0 0 !important; line-height: 1.5 !important; }
body.wn-auth .btn_set button { white-space: nowrap; padding: 0 12px !important; }

/* 로그인: 로그인(주) / 회원가입(보조) 위아래 */
body.wn-auth section.login .sub__container { max-width: 400px; }
body.wn-auth section.login .sub__flex-content { gap: 0 !important; padding: 36px 32px !important; }
body.wn-auth section.login .row-box__title { margin-bottom: 24px !important; }
body.wn-auth section.login .btn_set { grid-template-columns: 1fr !important; gap: 10px !important; margin-top: 8px !important; }
body.wn-auth section.login .btn_set .btn--primary { min-height: 48px !important; }

/* 가입: 좌(계정)·우(계좌) 칸을 가로 한 줄씩 짝지어 줄 맞춤 — 마크업 그대로, 각 칸에 order 부여 */
body.wn-auth section.join .sub__container { max-width: 720px; }
body.wn-auth section.join .sub__flex-content { padding: 36px 40px !important; }
body.wn-auth section.join .sub__flex-content form { width: 100%; }
body.wn-auth section.join .row-box { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: start; width: auto !important; }
body.wn-auth section.join .row-box__title { grid-column: 1 / -1; order: 0; width: auto !important; margin-bottom: 6px !important; }
body.wn-auth section.join .row-box__title b { color: var(--wn-text); font-size: 16px; }
body.wn-auth section.join .row-box__item { display: contents !important; }
body.wn-auth section.join .row-box .input-text-box { margin: 0 !important; }
body.wn-auth section.join .row-box__title + .row-box__item > .input-text-box:nth-child(1) { order: 1; }
body.wn-auth section.join .row-box__item + .row-box__item > .input-text-box:nth-child(1) { order: 2; }
body.wn-auth section.join .row-box__title + .row-box__item > .input-text-box:nth-child(2) { order: 3; }
body.wn-auth section.join .row-box__item + .row-box__item > .input-text-box:nth-child(2) { order: 4; }
body.wn-auth section.join .row-box__title + .row-box__item > .input-text-box:nth-child(3) { order: 5; }
body.wn-auth section.join .row-box__item + .row-box__item > .input-text-box:nth-child(3) { order: 6; }
body.wn-auth section.join .row-box__title + .row-box__item > .input-text-box:nth-child(4) { order: 7; }
body.wn-auth section.join .row-box__item + .row-box__item > .input-text-box:nth-child(4) { order: 8; }
body.wn-auth section.join .row-box__title + .row-box__item > .input-text-box:nth-child(5) { order: 9; }
body.wn-auth section.join .row-box__item + .row-box__item > .input-text-box:nth-child(5) { order: 10; }
body.wn-auth section.join .row-box__title + .row-box__item > .input-text-box:nth-child(6) { order: 11; }
body.wn-auth section.join .row-box__item + .row-box__item > .input-text-box:nth-child(6) { order: 12; }
body.wn-auth section.join .btn_set { gap: 20px !important; margin-top: 24px !important; }

/* 버튼 */
body.wn-auth .btn_set { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 0 !important; width: auto !important; }
body.wn-auth .btn_set button, body.wn-auth button[class*="btn--"] {
    width: 100% !important; min-height: 52px; height: auto !important; border-radius: 8px !important; font-size: 16px !important; font-weight: 700 !important;
    border: 1px solid transparent !important; box-shadow: none !important; text-shadow: none !important; cursor: pointer; margin: 0 !important;
}
/* 로그인 화면은 첫 버튼이 '로그인'(btn--secondary) → 주 버튼 처리, 가입화면은 btn--primary 가 '회원가입' */
body.wn-auth section.login .btn_set #btnLoginSubmit, body.wn-auth .btn_set .btn--primary { background: var(--wn-btn-accent) !important; color: var(--wn-on-accent) !important; }
body.wn-auth section.login .btn_set .btn--primary { background: transparent !important; border-color: var(--wn-input-border) !important; color: var(--wn-text) !important; }
body.wn-auth .btn_set .btn--gray, body.wn-auth .btn--secondary:not(#btnLoginSubmit) { background: transparent !important; border-color: var(--wn-input-border) !important; color: var(--wn-text) !important; }
body.wn-auth .btn_set { width: 100% !important; max-width: none !important; }
body.wn-auth section.join { align-items: flex-start; }
/* login_style.css 의 body overflow:hidden + section 고정 높이(안쪽 스크롤) → 페이지 스크롤로 */
html, body.wn-auth { height: auto !important; overflow-y: auto !important; overflow-x: hidden; }
body.wn-auth section.sub { height: auto !important; overflow: visible !important; }
body.wn-auth .input-text-box .btn--secondary { width: auto !important; min-height: 48px; padding: 0 14px; font-size: 14px !important; flex-shrink: 0; }

/* 하단 고객센터 안내 */
body.wn-auth #login_wrap { position: static !important; height: auto !important; width: auto !important; }
body.wn-auth .cs_center { position: fixed; left: 0; right: 0; bottom: 16px; width: auto !important; margin: 0 !important; text-align: center; z-index: 10; }
body.wn-auth .cs_center .telegram span { color: var(--wn-text-sub) !important; font-size: 14px !important; }
body.wn-auth .cs_center .telegram img { width: 22px !important; vertical-align: middle; }
body.wn-auth .cs_center em { color: var(--wn-text-mute) !important; font-size: 12px; font-style: normal; }

@media (max-width: 639.98px) {
    body.wn-auth section.sub { padding: 24px 12px 110px; align-items: flex-start; }
    body.wn-auth .sub__flex-content { padding: 24px 18px !important; }
    body.wn-auth .sub__logo { width: 200px !important; height: 62px !important; }
    /* 모바일 가입: 1열, 원래 순서(계정 → 계좌) */
    body.wn-auth section.join .row-box { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    body.wn-auth section.join .row-box .input-text-box { order: 0 !important; }
    body.wn-auth section.join .sub__flex-content { padding: 24px 18px !important; }
}
