@charset "UTF-8";
/* ==========================================================================
   user_auth.css — rn_auth 6 JSP 토스풍 공통 베이스 (2026-05-28)
   - 데스크탑/모바일 분기 없음 (카드폭 420px 가 둘 다 좁아 동일 톤 OK)
   - 토큰: user_variables.css 의 --u-* 그대로 사용
   - 접두사 .au-* (rn_auth 한정)
   ========================================================================== */

/* ── 0. 페이지 셸 — 풀스크린 화이트 + 카드 중앙 ───────────────────────── */
.au-screen {
    min-height: 100vh;
    background: var(--u-bg-card);          /* 토스 = 카드와 같은 흰 배경 */
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.au-card {
    width: 100%; max-width: 420px;
    display: flex; flex-direction: column;
    padding: 28px 22px 24px;
    position: relative;
}
/* 카드 하단 CTA 가 고정처럼 보이도록 flex 빈공간 채움 */
.au-card .au-spacer { flex: 1; min-height: 12px; }

/* ── 0-b. 다국어 — 화면 우상단 고정 지구버튼 (헤더가 없는 카드 레이아웃이라 fixed) ──
   마크업/동작은 lang_switcher.css/.js(.lang-switch/.lang-panel) 재사용. 여기선 위치만. */
.au-lang { position: fixed; top: 14px; right: 14px; z-index: 50; }
.au-lang .lang-panel { z-index: 60; }   /* 카드 위로 */

/* ── 1. 위저드 상단 (뒤로 + 단계) ─────────────────────────────────── */
.au-step-bar {
    height: 4px; background: var(--u-border-light);
    border-radius: 999px; margin: 4px 0 14px; overflow: hidden;
}
.au-step-bar .fill {
    height: 100%; background: var(--u-accent);
    border-radius: 999px; transition: width 0.25s;
}
.au-step-top {
    display: flex; align-items: center; justify-content: space-between;
    height: 36px; margin-bottom: 10px;
    font-size: 13px; color: var(--u-ink-light);
}
.au-step-top .back {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border: none; background: transparent;
    color: var(--u-ink); font-size: 22px; cursor: pointer;
    border-radius: var(--u-radius); margin-left: -6px;
}
.au-step-top .back:hover { background: var(--u-mo-surface); }
.au-step-top .step { font-weight: 600; }
.au-step-top .step b { color: var(--u-ink); }

/* ── 2. 큰 인사 타이포 ────────────────────────────────────────────── */
.au-greet {
    font-size: 24px; font-weight: 800; line-height: 1.35;
    color: var(--u-ink); letter-spacing: -0.5px;
    margin: 6px 0 6px;
}
/* 브랜드 로고 락업 — 심볼(이미지) + 미리살핌 + 입니다 를 세로 중앙 정렬 */
.au-brandline { display: inline-flex; align-items: center; }
.au-brand-mark { height: 34px; width: auto; margin-right: 7px; }
.au-greet .au-brand {
    font-size: 30px; font-weight: 800; letter-spacing: -0.5px;
    line-height: 1;
}
.au-greet-suffix { margin-left: 7px; line-height: 1; position: relative; top: 2px; }
/* 브랜드 로고타입 색 — 심볼(logo_miri_mark.png)과 동일. UI 토큰 아님(브랜드 전용 hex) */
.au-greet .au-brand .b-mi  { color: #095CAE; }   /* 미리 = 로고 파랑 */
.au-greet .au-brand .b-sal { color: #28B445; }   /* 살핌 = 로고 초록 */
.au-greet-sub {
    font-size: 14px; color: var(--u-ink-muted);
    line-height: 1.5; margin-bottom: 20px;
}

/* 작은 로고 (선택적, 아이콘만) */
.au-logo-mini {
    width: 44px; height: 44px;
    background: var(--u-accent-light); border-radius: var(--u-radius-xl);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.au-logo-mini i { font-size: 22px; color: var(--u-accent); }

/* ── 3. 필드 — 큰 회색 input ──────────────────────────────────────── */
.au-fld { margin-bottom: 14px; }
.au-fl {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--u-ink-strong); margin-bottom: 8px;
}
.au-fl .req { color: var(--u-danger); margin-left: 2px; }

/* 보조 유틸 — auth 한정 (signup 위저드 panel·section 토글 + CTA 비활성) */
.au-screen .is-hide { display: none !important; }
.au-cta.is-disabled { opacity: 0.4; pointer-events: none; }

.au-input {
    width: 100%; height: 56px; padding: 0 16px;
    border: 1.5px solid transparent;
    border-radius: var(--u-radius-lg);
    background: var(--u-mo-surface);
    font-size: 16px; color: var(--u-ink);
    transition: border-color 0.15s, background 0.15s;
    -webkit-appearance: none; appearance: none;
    box-sizing: border-box;
}
.au-input:focus {
    outline: none;
    border-color: var(--u-accent);
    background: var(--u-bg-card);
}
.au-input::placeholder { color: var(--u-ink-muted); }
.au-input.error { border-color: var(--u-danger); background: var(--u-bg-card); }
.au-input.success { border-color: var(--u-success); }
/* select 도 동일 토스 톤 */
select.au-input {
    background: var(--u-mo-surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 14px center / 18px 18px;
    padding-right: 40px;
}

/* 인라인 그룹 (input + 작은 버튼) — 중복확인 등 */
.au-input-row { display: flex; gap: 8px; }
.au-input-row .au-input { flex: 1; }
.au-btn-mini {
    height: 56px; padding: 0 16px;
    border: 1.5px solid transparent;
    border-radius: var(--u-radius-lg);
    background: var(--u-mo-surface);
    font-size: 14px; font-weight: 700; color: var(--u-accent);
    cursor: pointer; white-space: nowrap;
    transition: background 0.15s;
}
.au-btn-mini:hover { background: var(--u-accent-light); }

/* 폼 메시지 */
.au-msg { font-size: 12px; margin-top: 6px; padding-left: 4px; }
.au-msg.ok { color: var(--u-success); }
.au-msg.err { color: var(--u-danger); }
.au-help {
    font-size: 12px; color: var(--u-ink-muted);
    margin-top: 6px; padding-left: 4px;
}

/* ── 4. CTA — 큰 파란 버튼 + 보조 ghost ───────────────────────────── */
.au-cta {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 56px;
    border: none; border-radius: var(--u-radius-xl);
    background: var(--u-accent); color: #fff;
    font-size: 17px; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
    text-decoration: none;
}
.au-cta:hover { background: var(--u-accent-hover); }
.au-cta:disabled { opacity: 0.5; cursor: not-allowed; }
.au-cta.ghost {
    background: var(--u-mo-surface); color: var(--u-ink);
}
.au-cta.ghost:hover { background: var(--u-border-light); }
.au-cta + .au-cta { margin-top: 10px; }

/* 하단 CTA 영역 — 카드 안 아래쪽 그룹 */
.au-cta-area {
    margin-top: 18px;
    display: flex; flex-direction: column; gap: 10px;
}

/* ── 5. 보조 링크 (가운데, 중간점 구분) ───────────────────────────── */
.au-link {
    text-align: center; margin-top: 14px;
    font-size: 13px; color: var(--u-ink-light);
}
.au-link a {
    color: var(--u-ink-light); font-weight: 500; text-decoration: none;
    padding: 4px 8px;
}
.au-link a:hover { color: var(--u-accent); }
.au-link .sep { color: var(--u-border-strong); margin: 0 2px; }

/* 정책 링크 (하단 작은 메뉴) */
.au-policy {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--u-border-light);
    font-size: 11px; color: var(--u-ink-muted);
}
.au-policy a { color: var(--u-ink-muted); text-decoration: none; padding: 4px 8px; }
.au-policy a:hover { color: var(--u-ink-light); }
.au-policy .sep { color: var(--u-border); }

/* ── 6. 정보 안내 박스 (find_pw / reset_pw 의 info-note) ──────────── */
.au-info {
    font-size: 13px; color: var(--u-ink-strong); line-height: 1.55;
    background: var(--u-mo-surface); border-radius: var(--u-radius-lg);
    padding: 14px 16px; margin-bottom: 16px;
}
.au-info strong { color: var(--u-accent); font-weight: 700; }

/* ── 7. 결과 박스 (find_id) ───────────────────────────────────────── */
.au-result {
    margin-top: 22px; padding: 18px 16px;
    background: var(--u-accent-light); border-radius: var(--u-radius-lg);
}
.au-result .head {
    font-size: 14px; color: var(--u-ink); text-align: center; margin-bottom: 12px;
}
.au-result .head strong { color: var(--u-accent); }
.au-result ul { list-style: none; margin: 0; padding: 0; }
.au-result li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; background: var(--u-bg-card);
    border-radius: var(--u-radius-lg);
}
.au-result li + li { margin-top: 8px; }
.au-result .r-id { font-size: 16px; font-weight: 700; color: var(--u-accent); }
.au-result .r-date { font-size: 12px; color: var(--u-ink-muted); }
.au-result .note { font-size: 11px; color: var(--u-ink-muted); text-align: center; margin-top: 12px; }
.au-result .au-cta { margin-top: 14px; }

/* ── 8. 현장 확인 카드 (signup 1단계) ─────────────────────────────── */
.au-site-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    background: var(--u-accent-light);
    border-radius: var(--u-radius-lg);
    margin-bottom: 14px;
}
.au-site-chip i { font-size: 22px; color: var(--u-accent); flex-shrink: 0; }
.au-site-chip .label { font-size: 11px; color: var(--u-accent); font-weight: 700; }
.au-site-chip .company { font-size: 12px; color: var(--u-ink-light); margin-top: 4px; }
.au-site-chip .company:empty { display: none; }
.au-site-chip .name { font-size: 15px; font-weight: 700; color: var(--u-ink); margin-top: 1px; }

/* "또는" divider */
.au-divider {
    display: flex; align-items: center; gap: 10px;
    margin: 18px 0; color: var(--u-ink-muted); font-size: 12px;
}
.au-divider::before, .au-divider::after {
    content: ""; flex: 1; height: 1px; background: var(--u-border-light);
}

/* QR 스캔 진입 버튼 — ghost CTA 와 구분되는 액센트 외곽선 */
.au-btn-scan {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 52px;
    border: 1.5px dashed var(--u-accent);
    border-radius: var(--u-radius-lg);
    background: var(--u-bg-card); color: var(--u-accent);
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: background 0.15s;
}
.au-btn-scan:hover { background: var(--u-accent-light); }
.au-btn-scan i { font-size: 18px; }

/* ── 9. 역할 세그먼트 (signup 1단계) ──────────────────────────────── */
.au-role-seg {
    display: flex; padding: 4px;
    background: var(--u-mo-surface); border-radius: var(--u-radius-xl);
    margin-bottom: 14px;
}
.au-role-seg input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.au-role-seg label {
    flex: 1; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: var(--u-ink-light);
    border-radius: 10px; cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.au-role-seg label.on {
    background: var(--u-bg-card); color: var(--u-ink);
    box-shadow: var(--u-shadow-sm);
}

/* ── 10. 약관 토글 행 (signup 3단계) ──────────────────────────────── */
.au-agree-row {
    display: flex; align-items: center; gap: 12px;
    padding: 16px;
    background: var(--u-mo-surface);
    border-radius: var(--u-radius-lg);
    cursor: pointer;
    font-size: 14px; color: var(--u-ink);
}
.au-agree-row + .au-agree-row { margin-top: 10px; }
.au-agree-row input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--u-accent); }
.au-agree-row .agree-text { flex: 1; }
.au-agree-row .agree-text a {
    color: var(--u-accent); text-decoration: underline; font-weight: 600;
}

/* ── 11. 위저드 패널 전환 ─────────────────────────────────────────── */
.au-panel { display: none; }
.au-panel.active { display: block; animation: auFade 0.22s ease; }
@keyframes auFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 12. QR 스캔 모달 — 토스 톤 (signup) ──────────────────────────── */
.au-scan-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(17,24,39,0.55); z-index: 1000;
}
.au-scan-overlay.open { display: flex; align-items: center; justify-content: center; padding: 16px; }
.au-scan-modal {
    width: 100%; max-width: 380px;
    background: var(--u-bg-card);
    border-radius: var(--u-radius-2xl);
    box-shadow: var(--u-shadow-md);
    padding: 22px;
}
.au-scan-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.au-scan-head .ic {
    width: 38px; height: 38px;
    background: var(--u-accent-light); border-radius: var(--u-radius-xl);
    display: flex; align-items: center; justify-content: center;
}
.au-scan-head .ic i { font-size: 18px; color: var(--u-accent); }
.au-scan-head .tt { font-size: 16px; font-weight: 700; color: var(--u-ink); }
.au-scan-stage {
    position: relative; aspect-ratio: 1 / 1;
    background: var(--u-ink); border-radius: var(--u-radius-lg); overflow: hidden;
}
.au-scan-stage #qrReader { width: 100%; height: 100%; }
.au-scan-stage #qrReader video { width: 100% !important; height: 100% !important; object-fit: cover; }
.au-scan-frame {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 62%; aspect-ratio: 1 / 1;
    border: 3px solid #fff; border-radius: var(--u-radius-lg);
    box-shadow: 0 0 0 9999px rgba(17,24,39,0.45);
    pointer-events: none;
}
.au-scan-hint {
    margin-top: 12px; text-align: center;
    font-size: 13px; color: var(--u-ink-light); line-height: 1.5;
}
.au-scan-actions { display: flex; gap: 8px; margin-top: 16px; }
.au-scan-actions .au-cta { flex: 1; height: 46px; font-size: 14px; border-radius: var(--u-radius-lg); }
/* 전역 .au-cta + .au-cta(세로 스택용) margin-top 누수 차단 — 가로 줄에서 '닫기' 처짐 방지 */
.au-scan-actions .au-cta + .au-cta { margin-top: 0; }

/* ── 13. 폴리시 팝업 (policy_popup.jsp) ───────────────────────────── */
body.au-policy-body-host { background: var(--u-bg-card); }
.au-policy-wrap {
    max-width: 600px; margin: 0 auto; padding: 20px 18px 36px;
}
.au-policy-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.au-policy-head h1 {
    font-size: 19px; font-weight: 800; color: var(--u-ink);
    letter-spacing: -0.3px; margin: 0;
}
.au-policy-close {
    height: 36px; padding: 0 14px;
    border: none; border-radius: var(--u-radius-lg);
    background: var(--u-mo-surface);
    font-size: 13px; font-weight: 600; color: var(--u-ink); cursor: pointer;
}
.au-policy-close:hover { background: var(--u-border-light); }
.au-policy-body {
    background: var(--u-mo-surface);
    border-radius: var(--u-radius-lg);
    padding: 20px 18px;
    word-break: break-word;
    font-size: 14px; line-height: 1.75; color: var(--u-ink-strong);
}
.au-policy-body p { margin: 0 0 8px; }
.au-policy-body h1, .au-policy-body h2, .au-policy-body h3 {
    margin: 16px 0 8px; font-weight: 700; color: var(--u-ink);
}
