@charset "utf-8";

/* Pretendard Variable — 이 엔진의 기본 글꼴을 **기기에 깔려 있든 말든** 같은 것으로 고정한다.
   ★ 없으면 개발 PC(설치됨)와 사용자 폰(미설치 → 시스템 한글 폰트)이 서로 다른 폰트로 렌더돼,
     글자 높이에 맞춘 값이 한쪽에서만 맞는다(2026-09-01 팝업 제목 막대에서 실제로 겪음).
   ★ @import 는 다른 규칙보다 앞에 와야 한다(@charset 다음). 뒤로 밀면 통째로 무시된다 — 에러가
     안 나고 폰트만 조용히 안 먹는다.
   동적 서브셋이라 화면에 나온 글자 블록만 내려받는다(자세히는 그 파일 머리말). */
@import url('../fonts/pretendard/pretendard-variable.css');

/* ===================================================== BASE.CSS — 팀모카 디자인 시스템 포인트 컬러: Mocha Brown ===================================================== */

/* ── CSS 변수 — Technical Dark Theme (design4 기반) ── */
:root {
  /* ── Primary — Electric Cyan ── */
  --c-primary:        #00F0FF;
  --c-primary-dark:   #00C8D6;
  --c-primary-deeper: #009FB3;
  --c-primary-light:  rgba(0,240,255,0.10);
  --c-primary-mid:    #40F8FF;
  --c-primary-pale:   rgba(0,240,255,0.06);
  --c-on-primary:     #0a1628;   /* primary 로 칠한 면 위의 글씨색(짝) — 테마마다 반대 명도 */

  /* ── Background / Surface (solid) ── */
  --c-white:        #ffffff;
  --c-bg:           #0b1116;
  --c-surface:      #141f29;
  --c-border:       #1e2f3d;
  /* 컨트롤 경계(입력창 테두리 등)라 WCAG 1.4.11 비텍스트 3:1 대상 — 종전 #2a3f52 는 1.77:1 로 미달.
     색조 유지하고 명도만 올림. 입력창 3.59:1 / 카드 3.11:1 (tools/contrast-check.js) */
  --c-border-dark:  #496e8f;
  --c-border-color: #1e2f3d;
  --c-text:         #e2e8f0;
  --c-text-sub:     #8fa8bc;
  --c-text-muted:   #748899;

  /* ── Header / Sidebar / Footer ── */
  --c-header-bg:      #0f171e;
  --c-header-text:    #e2e8f0;
  --c-sidebar-bg:     #0f171e;
  --c-sidebar-border: #1e2f3d;
  --c-sidebar-text:   #748899;
  --c-sidebar-hover:  #1a2a37;
  --c-footer-bg:      #0f171e;
  --c-footer-text:    #748899;

  /* ── 추가 배경 레이어 ── */
  --c-bg-input:          #090f14;
  --c-bg-input-focus:    #0d1a23;
  --c-bg-input-readonly: #0b1520;
  --c-bg-elevated:       #0f1a23;
  --c-bg-hover:          #1e3040;

  /* ── 추가 텍스트 ── */
  --c-text-body:     #c8d8e4;
  --c-text-selected: #80F8FF;

  /* ── Status ── */
  --c-success: #22D3A0;
  --c-warning: #A855F7;
  --c-danger:  #FFA040;
  --c-info:    #00F0FF;

  /* ── 필수입력(data-m-required) 강조 — 다크는 danger 테두리만, 배경은 주지 않는다(2026-07-16 결정).
        배경 틴트는 라이트(theme-light-fix.css)·고대비(theme-hc.css)만 사용 ── */
  --c-req-border: var(--c-danger);

  /* ── Grid ── */
  --c-grid-toolbar:  #111b24;
  --c-grid-th:       #192633;
  --c-grid-row-alt:  #0e1822;
  --c-grid-hover:    #1a2a37;
  --c-grid-selected: rgba(0,240,255,0.09);
  /* 집계행(소계/합계 — grid.js §49). 일반 행·선택색과 구분되는 전용 색 — 배경/글씨는 항상 짝으로 쓴다.
     회색은 행에 묻히고, 청록은 선택색(파랑·시안)과 겹치고, 앰버는 다크 기조에 이질적이었음(2026-07-20 피드백 3회)
     → 딥그린 계열 유지하되 소계/합계 2단 위계: 소계 = 어두운 그린 배경+그린 글씨(은은),
       합계 = 밝은 그린 배경+진한 글씨(강조) — 고대비 테마에서 확정한 "글씨 강조 < 배경까지 강조"
       위계를 다크에도 적용(소계·합계가 둘 다 딥그린이라 구분이 안 된다는 피드백, 2026-07-20) */
  --c-grid-agg-bg:         #143a28;
  --c-grid-agg-text:       #86efac;
  --c-grid-agg-total-bg:   #2f9e63;
  --c-grid-agg-total-text: #06130b;

  /* ── Shadow ── */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.7);

  /* ── Radius ── */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --c-black: #000000;
}

/* ── CSS 변수 — Light Theme (1c · Warm Paper) ── */
:root.theme-light {
  /* ── Primary — Warm Paper 액센트 (딥 틸) ── */
  --c-primary:        #0f766e;
  --c-primary-dark:   #0b5d56;
  --c-primary-deeper: #0a4f49;
  --c-primary-light:  rgba(15,118,110,0.10);
  --c-primary-mid:    #0d9488;
  --c-primary-pale:   rgba(15,118,110,0.06);
  --c-on-primary:     #ffffff;   /* 라이트 primary(딥 틸)는 어두우므로 흰 글씨 */

  /* ── Background / Surface (solid) ── */
  --c-white:        #ffffff;
  --c-bg:           #f2efe9;
  --c-surface:      #fffdf9;
  --c-border:       #e7e0d4;
  /* 컨트롤 경계 — WCAG 1.4.11 비텍스트 3:1. 종전 #d6cdbc 는 1.55:1 로 미달.
     색조 유지하고 명도만 낮춤. 카드 3.47:1 / 배경 3.08:1 */
  --c-border-dark:  #9a865f;
  --c-border-color: #e7e0d4;
  --c-text:         #2c2a24;
  --c-text-sub:     #6b6455;
  --c-text-muted:   #6b6455;

  /* ── Header / Sidebar / Footer ── */
  --c-header-bg:      #faf8f4;
  --c-header-text:    #2c2a24;
  --c-sidebar-bg:     #faf8f4;
  --c-sidebar-border: #e7e0d4;
  --c-sidebar-text:   #6b6455;
  --c-sidebar-hover:  #f0ebe1;
  --c-footer-bg:      #faf8f4;
  --c-footer-text:    #6b6455;

  /* ── 추가 배경 레이어 ── */
  --c-bg-input:          #fffdf9;
  --c-bg-input-focus:    #fffdf9;
  --c-bg-input-readonly: #f6f2ea;
  --c-bg-elevated:       #fffdf9;
  --c-bg-hover:          #f0ebe1;

  /* ── 추가 텍스트 ── */
  --c-text-body:     #4a463c;
  --c-text-selected: #0b5d56;

  /* ── Status (의미론적 컬러) ── */
  /* 상태색 — 웜 페이퍼 배경(#f2efe9) 위에서 4.5:1 미달이던 것을 명도만 낮춰 충족시킴
     (종전 성공 2.85 / 경고 3.45 / 위험 3.92). 현재 배경 4.58 / 4.61 / 4.62 */
  --c-success: #3b7851;
  --c-warning: #942ef5;
  --c-danger:  #b4493e;
  --c-info:    #0f766e;

  /* ── 필수입력(data-m-required) 강조 — 전통적 조합: 연노랑 배경 + 붉은톤 테두리 ──
     노란 앰버 + 또렷한 붉은 테두리색으로 강화(테두리 굵기는 1px 유지). */
  --c-req-border: #c0473b;   /* danger(#b4493e) 계열의 또렷한 붉은색 */
  --c-req-bg:     #fff1b8;   /* 일반 입력창(#fffdf9)과 확실히 구분되는 연앰버 */

  /* ── Grid ── */
  --c-grid-toolbar:  #f6f2ea;
  --c-grid-th:       #f3efe6;
  --c-grid-row-alt:  #faf7f0;
  --c-grid-hover:    #f0ebe1;
  --c-grid-selected: #d3ede9;
  /* 집계행(§49) — 웜페이퍼 기조의 진한 베이지(일반 행 #faf7f0 과 뚜렷이 구분) */
  --c-grid-agg-bg:         #f0e8d3;
  --c-grid-agg-text:       #2c2a24;
  --c-grid-agg-total-bg:   #e5d8b8;
  --c-grid-agg-total-text: #1f1d18;

  /* ── Shadow ── */
  --shadow-sm: 0 1px 3px rgba(60,50,30,0.08);
  --shadow-md: 0 4px 12px rgba(60,50,30,0.10);
  --shadow-lg: 0 8px 24px rgba(60,50,30,0.12);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; font-family: 'Pretendard Variable', Pretendard, 'Malgun Gothic', '맑은 고딕', Dotum, sans-serif; font-size: 13px; color: var(--c-text); background: var(--c-bg); overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Layout ── */
/* padding-bottom safe-area: iOS 홈 인디케이터 등 안전영역 하단 보정. 일반 브라우저 모드에선 inset 0 → no-op.
   (viewport-fit=cover 는 2026-07-22 제거 — 사파리 하단 주소창 겹침의 원인. 이 패딩은 PWA/전체화면 대비 유지) */
.wrap { display: flex; flex-direction: column; width: 100%; height: 100vh; height: 100svh; padding-bottom: env(safe-area-inset-bottom); position: relative; z-index: 1; }

/* ── Header ── */
.header { flex-shrink: 0; height: 54px; background: var(--c-header-bg); display: flex; align-items: center; padding: 0 24px; gap: 10px; position: relative; border-bottom: 1px solid var(--c-border); box-shadow: 0 1px 0 rgba(0,240,255,0.05); }
.header h1 { width:40px; height:40px; background:url(../images/bl_mark.svg) no-repeat 50%; background-size:100%; }
.header h1 span { width:1px; height:1px; display:none; }
.header h3 { color: #ffffff; font-size: 16px; font-weight: 800; letter-spacing: -0.3px; }
.header h3 span { color: var(--c-danger); }

/* 하단 포인트 라인 */
.header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--c-primary); }

/* ── Header 사용자 영역 ── */
/* ── 헤더 아이콘 버튼 표준 ─────────────────────────────────────────────────────
   헤더에 서는 조작들(햄버거·사용자·로그아웃)은 **같은 크기·같은 간격**으로 둔다.
   글자 버튼 하나만 섞이면 높이도 여백도 혼자 달라서 줄이 어긋나 보인다(2026-08-31 지시).
   크기는 햄버거(36px)에 맞췄다 — 손가락으로 누르는 것들의 기준이 그쪽이기 때문이다.
   ★ 아이콘은 <img> 가 아니라 mask 로 그린다 — img 는 파일 안의 색이 그대로 나와
     테마·hover 색을 따라가지 못한다(§82 타이틀바 아이콘 버튼과 같은 규칙). */
.header_icon_btn {
	width: 36px; height: 36px; padding: 0; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--c-border-dark); border-radius: 8px;
	color: var(--c-text-sub); cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.header_icon_btn::before {
	content: ''; width: 18px; height: 18px; background-color: currentColor;
	-webkit-mask: var(--hib-icon) no-repeat center / contain;
	        mask: var(--hib-icon) no-repeat center / contain;
}
.header_icon_btn:hover { border-color: var(--c-primary); color: var(--c-primary); }

.header_user_area { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* 사용자 표식 — 그라디언트·글로우를 걷어낸 단순 선 아이콘(2026-08-31 지시).
   ★ 이건 누르는 버튼이 아니라 "누구로 들어와 있는지"를 알리는 표식이다. 그래서 옆의
     아이콘 버튼과 같은 크기(36px)로 줄은 맞추되, 테두리 없이 원형 바탕만 둬서
     누를 것과 읽을 것을 눈으로 구분되게 한다.
   ★ 이모지(👤)를 쓰지 않는다 — OS 마다 그림이 다르고 색을 못 바꿔 테마를 따라가지 못한다.
     mask 로 그리면 currentColor 를 따르므로 다크·라이트·고대비에서 알아서 맞는다. */
.header_user_icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-surface); color: var(--c-text-sub); flex-shrink: 0; }
.header_user_icon::after {
	content: ''; width: 20px; height: 20px; background-color: currentColor;
	-webkit-mask: url("../images/icon_user.svg") no-repeat center / contain;
	        mask: url("../images/icon_user.svg") no-repeat center / contain;
}
.header_username { color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header_logout_btn { padding: 5px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; background: transparent; color: rgba(255,255,255,0.65); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.header_logout_btn:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-light); }

/* ── 테마 전환 토글(범용 toggle 컴포넌트 + moca_toggle_theme 아이콘 클래스) 헤더 배치 — 스위치/라벨 스타일은 moca.css §10-2b ── */
.header_theme_toggle {
	margin-right: 20px;
	padding: 4px 10px;
	background: rgba(0,0,0,0.3);
	border-radius: 8px;
}
/* 헤더는 테마 무관 다크 네이비 배경 — 라벨을 헤더 전용 밝은 색으로 (컴포넌트 기본색 오버라이드) */
.header_theme_toggle .mtg_label { color: rgba(255,255,255,0.7); }

/* ── 헤더 메뉴 검색(searchCombo) — 코드/메뉴명/화면파일명으로 검색해 화면 오픈(index.html 부트가 초기화).
      기본 폭 140px 규칙(div[data-m-type="searchCombo"], 특이도 0,1,1)을 이기려면 클래스 2개(0,2,0)가 필요 ── */
.header .header_menu_search { width: 250px; }

/* ── Container ── */
.container { flex: 1; display: flex; overflow: hidden; }
.page_root { display: flex; flex-direction: column; height: 100%; }

/* ── Left Sidebar ── */
.left { flex-shrink: 0; width: 212px; background: var(--c-sidebar-bg); overflow-y: auto; display: flex; flex-direction: column; }

/* 사이드바 상단 레이블 */
.left h3 { color: var(--c-sidebar-text); font-size: 12px; font-weight: 500; padding: 8px 14px; margin: 1px 6px; border-radius: var(--radius-sm); transition: background 0.15s, color 0.15s; cursor: pointer; display: flex; align-items: center; gap: 8px; position: relative; }
.left h3:hover { background: var(--c-sidebar-hover); color: var(--c-text); }

/* 왼쪽 포인트 점 */
.left h3::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--c-border-dark); flex-shrink: 0; transition: all 0.12s; }
.left h3:hover::before { background: var(--c-primary); }
.left h3.active { background: var(--c-primary-light); color: var(--c-primary); font-weight: 700; border-left: 3px solid var(--c-primary); padding-left: 11px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-left: 0; }
.left h3.active::before { background: var(--c-primary); }

/* ── Right Content ── */
.right { flex: 1; overflow-y: auto; display: flex; flex-direction: column; background: var(--c-bg);}

/* ── Footer ── */
.footer { flex-shrink: 0; height: 28px; background: var(--c-footer-bg); display: flex; align-items: center; justify-content: center; position: relative; padding: 0 20px; border-top: 1px solid var(--c-border); }
.footer h3 { color: var(--c-footer-text); font-size: 12px; font-weight: 400; text-align: center; }

/* 푸터 우측 상태/조회결과 표시 (JS로 갱신) */
.footer_status { font-size: 12px; color: var(--c-success); letter-spacing: 0.2px; position: absolute; right: 20px; }

/* ── Utility ── */
.fl { float: left; }
.fr { float: right; }
.tar { text-align: right; }
.tal { text-align: left; }
.tac { text-align: center; }
.bd { border: 1px solid var(--c-border); }
.mt5 { margin-top: 5px; }
.mt10 { margin-top: 10px; }
.mt12 { margin-top: 12px; }
.mr5 { margin-right: 5px; }
.ml2 { margin-left: 2px; }
.p5 { padding: 5px; }
.p10 { padding: 10px; }
.pl10 { padding-left: 10px; }
.mb5 { margin-bottom: 5px; }
/* 보조 설명문 — 필드 옆 안내처럼 "읽어도 되고 안 읽어도 되는" 문장.
   강조색(txt_blue/green/red)은 값·상태를 도드라지게 하는 용도라, 설명 문장까지 강조색으로 칠하면
   화면에 강조만 남아 정작 값이 안 보인다. 문장은 이 클래스, 그 안의 값만 강조색으로 감싼다. */
.txt_desc { color: var(--c-text-sub); font-weight: 400; }
.txt_blue { color: var(--c-primary); font-weight: 600; }
.txt_red { color: var(--c-danger); }
.txt_green { color: var(--c-success); font-weight: 600; }

/* ── Scrollbar — PC/모바일 구분 없이 그리드 엔진 썸(.moca_grid_swipethumb, moca.css)과 동일한 모양으로 통일.
   iOS(WebKit)는 ::-webkit-scrollbar 미지원이라 이 스타일이 안 먹는다 — 그리드는 엔진 썸이 대신 표시되고,
   그 외 컨테이너는 iOS 기본(스크롤 중에만 인디케이터)으로 동작한다(2026-07-22 결정). ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(120, 130, 145, 0.65); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 112, 130, 0.85); }

/* ── Login Page ───────────────────────────────────────── */
.login_wrap { width: 100%; height: 100vh; min-height: 100vh; height: 100svh; min-height: 100svh; display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #0A70B0 0%, #1090D8 35%, #23A8F2 70%, #7DD3F8 100%); position: relative; overflow: hidden; }
.login_bg_circle { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.07); pointer-events: none; }
.login_bg_circle:nth-child(1) { width: 420px; height: 420px; top: -110px; left: -130px; }
.login_bg_circle:nth-child(2) { width: 300px; height: 300px; bottom: -90px; right: -80px; }
.login_bg_circle:nth-child(3) { width: 160px; height: 160px; top: 42%; left: 64%; opacity: 0.5; }
.login_card { position: relative; z-index: 1; flex-shrink: 0; margin-block: auto; background: #ffffff; border-radius: 20px; padding: 24px 22px 18px; width: 360px; box-shadow: 0 24px 64px rgba(10, 112, 176, 0.30), 0 4px 16px rgba(10, 112, 176, 0.14); }
.login_logo_area { text-align: center; margin-bottom: 15px; }
.login_logo_img { width: 100px; height: 100px; margin: 0 auto 14px; display: block; border-radius: 50%; background: #0A70B0; padding: 12px; box-sizing: border-box; }
.login_title { font-size: 26px; font-weight: 800; color: #1A2B38; margin-bottom: 6px; letter-spacing: -0.5px; }
.login_title em { color: #23A8F2; font-style: normal; }
.login_subtitle { font-size: 11px; color: #7A99AB; letter-spacing: 1.2px; text-transform: uppercase; }
.login_divider { display: flex; align-items: center; gap: 10px; margin: 26px 0 22px; font-size: 11px; color: #7A99AB; letter-spacing: 0.4px; }
.login_divider::before, .login_divider::after { content: ''; flex: 1; height: 1px; background: #D9EEF8; }
.login_google_wrap { display: flex; flex-direction: column; align-items: center; min-height: 44px; margin-bottom: 32px; }
.login_footer { border-top: 1px solid #D9EEF8; padding-top: 18px; text-align: center; }
.login_footer p { font-size: 11px; color: #7A99AB; line-height: 2.0; }
.login_badge { display: inline-block; margin-top: 12px; padding: 4px 14px; background: #EBF8FF; border-radius: 20px; font-size: 10px; font-weight: 700; color: #23A8F2; letter-spacing: 1.4px; }

/* ── Google Login 확장 ─────────────────────────────────── */
.login_welcome { text-align: center; font-size: 13px; color: #435A6B; line-height: 1.8; margin-bottom: 4px; }
.login_loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 0; font-size: 13px; color: #435A6B; }
.login_spinner { width: 20px; height: 20px; border: 3px solid #D9EEF8; border-top-color: #23A8F2; border-radius: 50%; animation: loginSpin 0.7s linear infinite; flex-shrink: 0; }
@keyframes loginSpin {
    to { transform: rotate(360deg); }
}
.login_error { background: #FFF0EE; border: 1px solid #FFCCC7; border-radius: var(--radius-md); padding: 10px 14px; font-size: 12px; color: #C0392B; text-align: center; margin-bottom: 16px; line-height: 1.6; }
.login_google_btn_wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 28px; }

/* ── Google 로그인 버튼 (커스텀 div) ──────────────────── */
.login_login { display: flex; align-items: center; justify-content: center; gap: 10px; width: 280px; height: 40px; padding: 0 12px; background: #131314; border: 1px solid #8E918F; border-radius: 4px; color: #E3E3E3; font-family: 'Roboto', 'Malgun Gothic', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.25px; cursor: pointer; user-select: none; transition: background 0.15s, box-shadow 0.15s; box-sizing: border-box; }
.login_login:hover { background: #1E1E1E; box-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.login_login:active { background: #2A2A2A; }
.login_login::before { content: ''; display: inline-block; width: 18px; height: 18px; background-image: url('../images/google-g.svg'); background-size: 18px 18px; background-repeat: no-repeat; background-position: center; border-radius: 2px; padding: 2px; flex-shrink: 0; }
.login_notice { font-size: 11px; color: #7A99AB; text-align: center; line-height: 1.7; padding: 0 4px; }
.login_doc { margin-top: 12px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.login_doc a { font-size: 11px; color: #7A99AB; line-height: 2.0; }
.login_doc span { font-size: 11px; color: #7A99AB; }

/* ── ID/PW 로그인 (demo COM_LOGIN — 셸 + layout 프레임) ─────────────────
   셸(COM_LOGIN.html)의 include frame 이 뷰포트를 꽉 채우는 높이 체인.
   %체인 대신 flex(grow+basis 0)로 잇는다 — §10-3-4 WebKit 대응과 같은 원리 */
.login_page_frame { height: 100vh; height: 100svh; display: flex; flex-direction: column; }
.login_page_frame > [data-m-type="frame"] { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.login_page_frame > [data-m-type="frame"] > .page_wrap { flex: 1 1 0; min-height: 0; padding: 0; }

/* layout 칸으로 쓰일 때는 뷰포트 단위 높이를 해제(칸 flex 가 채움) */
.moca_layout_pane.login_wrap { height: auto; min-height: 0; }

/* ID/PW 입력 폼 */
.login_form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
/* 라벨 + 입력을 한 줄로 — 라벨 폭 고정(가장 긴 "비밀번호" 기준)이라 입력칸 좌변이 서로 맞는다 */
.login_field { display: flex; align-items: center; gap: 12px; }
.login_field label { flex: 0 0 62px; font-size: 12px; font-weight: 700; color: #435A6B; letter-spacing: 0.3px; line-height: 1.4; text-align: right; }
.login_field div[data-m-type="input"].moca_input { display: block; flex: 1 1 0; width: auto; min-width: 0; }
.login_field .moca_input input { width: 100%; height: 44px; padding: 0 14px; font-size: 14px; color: #1A2B38; background: #F6FBFE; border: 1px solid #CBE5F3; border-radius: 10px; box-sizing: border-box; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.login_field .moca_input input:focus { background: #ffffff; border-color: #23A8F2; box-shadow: 0 0 0 3px rgba(35, 168, 242, 0.15); outline: none; }
.login_submit_btn { width: 100%; height: 46px; margin-top: 4px; border: none; border-radius: 10px; background: #0A70B0; color: #ffffff; font-size: 15px; font-weight: 700; letter-spacing: 4px; text-indent: 4px; cursor: pointer; box-shadow: 0 8px 20px rgba(10, 112, 176, 0.30); transition: filter 0.15s, transform 0.05s; }
.login_submit_btn:hover { filter: brightness(1.06); }
.login_submit_btn:active { transform: translateY(1px); }

/* demo 로그인 셸에서만 푸터 여백 축소 (다른 프로젝트 로그인은 기본값 유지) */
.login_page_frame .login_footer { padding-top: 10px; }
.login_page_frame .login_footer p { line-height: 1.7; }

/* 데모 계정 안내 배지 */
.login_hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 18px; padding: 8px 12px; background: #EBF8FF; border-radius: 10px; font-size: 12px; color: #435A6B; }
.login_hint b { color: #0A70B0; font-weight: 700; }

/* ── Demo login — editorial split layout ───────────────── */
.demo_login_page { padding: 40px; background-color: #071521; background-image: linear-gradient(rgba(111, 216, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 216, 255, 0.035) 1px, transparent 1px), radial-gradient(circle at 14% 18%, rgba(33, 174, 229, 0.22), transparent 32%), radial-gradient(circle at 88% 82%, rgba(50, 204, 174, 0.16), transparent 30%); background-size: 42px 42px, 42px 42px, auto, auto; box-sizing: border-box; isolation: isolate; }
.demo_login_page::before { content: ''; position: absolute; width: 640px; height: 640px; border: 1px solid rgba(116, 218, 255, 0.12); border-radius: 50%; top: -390px; right: -220px; box-shadow: 0 0 0 100px rgba(116, 218, 255, 0.025), 0 0 0 210px rgba(116, 218, 255, 0.018); }
.demo_login_glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.demo_login_glow_top { width: 9px; height: 9px; top: 14%; left: 9%; background: #65D9FF; box-shadow: 0 0 28px 6px rgba(101, 217, 255, 0.75); }
.demo_login_glow_bottom { width: 7px; height: 7px; right: 12%; bottom: 13%; background: #55E2C0; box-shadow: 0 0 24px 5px rgba(85, 226, 192, 0.65); }
.demo_login_card { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr); width: min(100%, 960px); min-height: 590px; padding: 0; overflow: hidden; border: 1px solid rgba(159, 215, 235, 0.18); border-radius: 28px; background: #F7FAFC; box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38), 0 2px 0 rgba(255, 255, 255, 0.07) inset; }
.demo_login_showcase { position: relative; display: flex; flex-direction: column; padding: 46px 50px 38px; color: #F2FAFD; background: linear-gradient(145deg, rgba(15, 54, 72, 0.98), rgba(7, 31, 44, 0.99)); overflow: hidden; }
.demo_login_showcase::before { content: ''; position: absolute; width: 330px; height: 330px; right: -160px; top: 70px; border: 1px solid rgba(96, 216, 255, 0.12); border-radius: 50%; box-shadow: 0 0 0 52px rgba(96, 216, 255, 0.025), 0 0 0 108px rgba(96, 216, 255, 0.018); }
.demo_login_showcase::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(93, 226, 196, 0.5), transparent); }
.demo_login_brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 800; letter-spacing: 0.18em; }
.demo_login_mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(135, 224, 255, 0.32); border-radius: 12px; background: rgba(126, 219, 255, 0.08); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.16); }
.demo_login_mark img { display: block; width: 25px; height: 25px; }
.demo_login_story { position: relative; z-index: 1; margin: auto 0 34px; }
.demo_login_badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid rgba(101, 217, 255, 0.26); border-radius: 999px; color: #83DFFF; background: rgba(101, 217, 255, 0.07); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.demo_login_story h1 { margin: 22px 0 18px; color: #F4FBFE; font-size: clamp(34px, 3.2vw, 46px); font-weight: 760; line-height: 1.22; letter-spacing: -0.055em; }
.demo_login_story h1 span { color: #66DDC1; }
.demo_login_story p { color: #AFC5CE; font-size: 14px; line-height: 1.8; letter-spacing: -0.01em; }
.demo_login_features { position: relative; z-index: 1; display: grid; gap: 0; border-top: 1px solid rgba(157, 209, 228, 0.13); }
.demo_login_features li { display: grid; grid-template-columns: 32px 100px 1fr; align-items: center; min-height: 43px; border-bottom: 1px solid rgba(157, 209, 228, 0.13); }
.demo_login_features li > span { color: #5DD9BC; font-size: 12px; font-weight: 700; }
.demo_login_features strong { color: #DCEBF0; font-size: 13px; font-weight: 650; letter-spacing: 0.02em; }
.demo_login_features small { color: #829DA8; font-size: 12px; text-align: right; }
.demo_login_showcase_note { position: relative; z-index: 1; margin-top: 25px; color: #5E7C88; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; }
.demo_login_panel { display: flex; flex-direction: column; justify-content: center; padding: 56px 56px 34px; color: #172A36; background: #F7FAFC; }
.demo_login_home { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; margin-bottom: 38px; color: #6D828C; font-size: 12px; font-weight: 700; text-decoration: none; transition: color 0.18s ease; }
.demo_login_home span:first-child { color: #1595A8; font-size: 18px; line-height: 1; transition: transform 0.18s ease; }
.demo_login_home:hover { color: #156F82; }
.demo_login_home:hover span:first-child { transform: translateX(-3px); }
.demo_login_home:focus-visible { border-radius: 6px; outline: 3px solid rgba(26, 157, 190, 0.22); outline-offset: 4px; }
.demo_login_mobile_brand { display: none; align-items: center; gap: 10px; margin-bottom: 32px; color: #12384A; font-size: 15px; letter-spacing: 0.16em; }
.demo_login_header { margin-bottom: 31px; }
.demo_login_eyebrow { display: block; margin-bottom: 12px; color: #168EAF; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; }
.demo_login_header h2 { margin: 0 0 12px; color: #132D3A; font-size: 30px; font-weight: 760; line-height: 1.3; letter-spacing: -0.045em; }
.demo_login_header p { color: #718590; font-size: 13px; line-height: 1.7; }
.demo_login_form { gap: 18px; margin-bottom: 14px; }
.demo_login_field { display: block; }
.demo_login_field label { display: block; margin-bottom: 8px; color: #49616D; font-size: 12px; font-weight: 700; line-height: 1.4; text-align: left; }
.demo_login_field div[data-m-type="input"].moca_input { display: block; width: 100%; }
.demo_login_field .moca_input input { height: 50px; padding: 0 16px; color: #183542; background: #FFFFFF; border: 1px solid #D8E3E8; border-radius: 12px; box-shadow: 0 1px 2px rgba(21, 53, 67, 0.03); }
.demo_login_field .moca_input input:hover { border-color: #B8CFD9; }
.demo_login_field .moca_input input:focus { background: #FFFFFF; border-color: #1A9DBE; box-shadow: 0 0 0 4px rgba(26, 157, 190, 0.12); }
.demo_login_submit { display: flex; align-items: center; justify-content: space-between; height: 52px; margin-top: 4px; padding: 0 19px 0 22px; border-radius: 12px; background: linear-gradient(100deg, #0D7F9F, #129C9A); font-size: 14px; letter-spacing: 0; text-indent: 0; box-shadow: 0 13px 26px rgba(12, 126, 152, 0.24); }
.demo_login_submit span:last-child { font-size: 22px; font-weight: 400; line-height: 1; transition: transform 0.18s ease; }
.demo_login_submit:hover { filter: brightness(1.04); }
.demo_login_submit:hover span:last-child { transform: translateX(3px); }
.demo_login_error { margin: 0 0 14px; border-color: #E5C8EE; color: #7A3D8F; background: #F9F1FC; }
.demo_login_account { display: flex; align-items: center; justify-content: space-between; min-height: 46px; margin-top: 7px; padding: 0 13px; border: 1px dashed #C8D8DE; border-radius: 10px; background: #F1F6F8; }
.demo_login_account > span { color: #7A909A; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.demo_login_account p { display: flex; align-items: center; gap: 8px; color: #A1B0B7; font-size: 12px; }
.demo_login_account strong { color: #274C5C; font-size: 13px; font-weight: 700; }
.demo_login_footer { margin-top: auto; padding-top: 28px; border: 0; text-align: left; }
.demo_login_footer p { color: #9AA9B0; font-size: 12px; line-height: 1.5; letter-spacing: 0.04em; }

/* 모바일 — 엔진 레이아웃이 칸을 내용 높이(flex:0 0 auto)로 풀므로, 로그인 칸만 뷰포트를 채워 그라데이션 배경 유지 */
@media (max-width: 768px) {
  .moca_layout > .moca_layout_pane.login_wrap { min-height: 100vh; min-height: 100svh; }
}

/* 모바일 — 카드가 화면에 꽉 차지 않도록 좌우 여백 확보 */
@media (max-width: 480px) {
  .login_wrap { padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); }
  .login_card { width: 100%; max-width: 400px; padding: 20px 16px 14px; }
}
