/* WorkPilot — 인증 공통 스타일 */
@import url('/css/ntgw/common-cfe033843a6122ca4bdfa09d52ce4f1b.css');  /* Pretendard 폰트 + color-scheme + 공통 리셋 */

input:focus { outline: none; }

.org-item:hover { box-shadow: 0 0 0 2px #6366f1; }

/* ══════════════════════════════════════════════════════════════════
 * 로그인 / 회원가입 (C안 — 2026-10-29)
 * 연한 배경 위 분할 카드(브랜드 패널 + 폼). Tailwind 에 의존하지 않는 순수 CSS —
 * JS 가 토글하는 .hidden 만 아래에서 직접 정의한다.
 * ══════════════════════════════════════════════════════════════════ */
.auth-body .hidden { display: none !important; }

.auth-body {
    min-height: 100vh; margin: 0; box-sizing: border-box;
    padding: 40px 24px; display: flex; align-items: center; justify-content: center;
    background: #e8eaf4; color: #111827; word-break: keep-all;   /* 한글을 단어 중간에서 끊지 않는다 */
}
.auth-body a { color: #4338ca; }
.auth-body a:hover { color: #3730a3; }

/* ── 분할 카드 ─────────────────────────────────────────────── */
.auth-card {
    display: flex; flex-wrap: wrap; width: 100%; max-width: 1200px; min-height: 680px;
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(30, 27, 75, .06), 0 20px 48px -12px rgba(30, 27, 75, .22);
}

.auth-panel {
    flex: 1 1 440px; position: relative; overflow: hidden; box-sizing: border-box;
    background: #1e1b4b; color: #e0e7ff; padding: 48px 56px;
    display: flex; flex-direction: column; gap: 48px;
}
.auth-panel::after {   /* 은은한 격자 — 우하단으로 갈수록 보인다 */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(160deg, transparent 25%, #000 100%);
    mask-image: linear-gradient(160deg, transparent 25%, #000 100%);
}
.auth-panel > * { position: relative; z-index: 1; }
/* 폼이 긴 화면(회원가입) — 패널 내용을 세로 가운데가 아니라 위쪽에 둔다 */
.auth-panel.is-top .auth-panel-body { flex: 0 1 auto; justify-content: flex-start; margin-top: 72px; }

.auth-body .auth-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; text-decoration: none; }
.auth-body .auth-logo:hover { color: #fff; }
.auth-logo-mark { width: 34px; height: 34px; flex: none; display: block; }

.auth-panel-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 40px; max-width: 440px; }
.auth-panel h1 { margin: 0 0 14px; font-size: 30px; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.auth-lede { margin: 0; font-size: 15px; line-height: 1.7; color: #c7d2fe; }

.auth-features { list-style: none; margin: 0; padding: 0; }
.auth-features li {
    display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.auth-features li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.auth-features b { font-weight: 700; font-size: 15px; color: #a5b4fc; }
.auth-features span { font-size: 15px; line-height: 1.5; color: #e0e7ff; }
.auth-features small { display: block; margin-top: 2px; font-size: 13px; color: #a5b4fc; }

/* ── 폼 영역 ───────────────────────────────────────────────── */
.auth-form-side {
    flex: 1 1 440px; box-sizing: border-box; padding: 48px 24px; background: #fff;
    display: flex; align-items: center; justify-content: center;
}
.auth-form-wrap { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 24px; }

.auth-head h2 { margin: 0 0 8px; font-size: 24px; font-weight: 700; color: #111827; }
.auth-head p { margin: 0; font-size: 15px; line-height: 1.6; color: #4b5563; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-field { display: flex; flex-direction: column; gap: 8px; }
.auth-field > label, .auth-label { font-size: 14px; font-weight: 600; color: #374151; }

.auth-control { position: relative; flex: 1; min-width: 0; }
.auth-input {
    width: 100%; height: 50px; box-sizing: border-box; padding: 0 14px;
    font: inherit; font-size: 16px; color: #111827; background: #fff;   /* 16px — iOS 입력 시 화면 확대 방지 */
    border: 1px solid #d4d7e3; border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.auth-input::placeholder { color: #6b7280; }
.auth-input:hover { border-color: #b9bdd0; }
.auth-input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px #e0e7ff; }
.auth-input[readonly] { background: #f3f4f6; color: #4b5563; cursor: not-allowed; }
.auth-input.has-toggle { padding-right: 52px; }
.auth-input.is-invalid, .auth-input.is-invalid:hover { border-color: #dc2626; }
.auth-input.is-invalid:focus { box-shadow: 0 0 0 3px #fee2e2; }
.auth-input.has-timer { padding-right: 64px; }
.auth-input.is-code { font-size: 20px; font-weight: 600; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.auth-input.is-code::placeholder { font-size: 15px; font-weight: 400; letter-spacing: normal; }

.auth-toggle-pw {
    position: absolute; right: 3px; top: 3px; width: 44px; height: 44px; border: 0; border-radius: 8px;
    background: transparent; color: #4b5563; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.auth-toggle-pw:hover { color: #111827; background: #eef2ff; }

.auth-timer { position: absolute; right: 14px; top: 15px; font-size: 14px; font-weight: 700; color: #b91c1c; font-variant-numeric: tabular-nums; }

.auth-inline { display: flex; gap: 8px; }

.auth-submit {
    height: 52px; border: 0; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 700;
    background: #4338ca; color: #fff; cursor: pointer; transition: background .15s;
}
.auth-submit:hover { background: #3730a3; }
.auth-submit[disabled] { background: #a5b4fc; cursor: progress; }

.auth-btn-outline {
    height: 50px; padding: 0 18px; flex: none; border-radius: 10px; border: 1px solid #4338ca; background: #fff;
    color: #4338ca; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.auth-btn-outline:hover { background: #eef2ff; }
.auth-btn-outline[disabled] { border-color: #d1d5db; color: #6b7280; background: #f9fafb; cursor: not-allowed; }

.auth-link-btn {
    align-self: center; min-height: 44px; padding: 0 8px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 14px; color: #4b5563;
}
.auth-link-btn:hover { color: #111827; }

.auth-body button:focus-visible, .auth-body a:focus-visible, .auth-body input[type=checkbox]:focus-visible {
    outline: 2px solid #4f46e5; outline-offset: 2px;
}

/* 입력 아래 안내·결과 문구 */
.auth-hint { font-size: 13px; line-height: 1.5; color: #4b5563; }
.auth-caps { font-size: 13px; color: #b45309; }
.auth-msg { font-size: 13px; line-height: 1.5; }
.auth-msg.is-ok { color: #15803d; }
.auth-msg.is-bad { color: #dc2626; }

/* 알림 박스 */
.auth-notice {
    display: flex; gap: 10px; padding: 12px 14px; border: 1px solid; border-radius: 10px;
    font-size: 14px; line-height: 1.55;
}
.auth-notice svg { flex: none; margin-top: 2px; }
.auth-notice.is-error { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.auth-notice.is-info  { border-color: #c7d2fe; background: #eef2ff; color: #3730a3; }
.auth-notice.is-ok    { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.auth-notice.is-warn  { border-color: #fde68a; background: #fffbeb; color: #b45309; }

.auth-alt { margin: 0; text-align: center; font-size: 14px; color: #4b5563; }
.auth-alt a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.auth-help { border-top: 1px solid #e5e7eb; padding-top: 20px; font-size: 14px; line-height: 1.6; color: #4b5563; display: flex; flex-direction: column; gap: 8px; }
.auth-help p { margin: 0; }
.auth-help strong { font-weight: 600; color: #111827; }

.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 13px; color: #6b7280; }
.auth-foot a { color: #4b5563; text-decoration: underline; text-underline-offset: 2px; }

/* ── 조직 선택 (org.html — 목록 영역은 Tailwind 유지) ─────────── */
.org-select-wrap { max-width: 460px; }

/* ── 초대 수락 ─────────────────────────────────────────────── */
.invite-org { color: #4338ca; }
.invite-meta { margin: 0; display: flex; justify-content: space-between; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 14px; }
.invite-meta dt { color: #4b5563; }
.invite-meta dd { margin: 0; font-weight: 600; color: #111827; }
.invite-center { text-align: center; }
.invite-prompt { flex-direction: column; }
.invite-actions { display: flex; gap: 8px; }
.invite-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.invite-actions .invite-btn { flex: 1; }   /* 가로 배치일 때만 반반 — 세로 흐름에서 flex:1 이면 높이가 0으로 접힌다 */
.auth-body a.auth-submit, .auth-body a.auth-submit:hover { color: #fff; }

/* ── 회원가입 (한 장짜리 카드) ─────────────────────────────── */
.signup-wrap { max-width: 460px; }

.signup-form { display: flex; flex-direction: column; gap: 28px; }
.signup-section { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.signup-section h3 { margin: 0; font-size: 16px; font-weight: 700; color: #111827; }
.signup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.signup-span { grid-column: 1 / -1; }

.signup-terms { border: 1px solid #e5e7eb; border-radius: 12px; padding: 8px 16px; display: flex; flex-direction: column; }
.signup-term { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; column-gap: 12px; }
.signup-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: #374151; cursor: pointer; }
.signup-check input { width: 18px; height: 18px; margin: 0; accent-color: #4f46e5; }
.signup-check-all { border-bottom: 1px solid #e5e7eb; font-weight: 700; color: #111827; }
.signup-term-toggle {
    min-height: 44px; min-width: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 13px; color: #4b5563; text-decoration: underline; text-underline-offset: 2px;
}
.signup-term-toggle:hover { color: #111827; }
.signup-term-body {
    flex-basis: 100%; margin: 0 0 10px; padding: 12px; border-radius: 8px; background: #f9fafb;
    font-size: 13px; line-height: 1.7; color: #374151;
}
.signup-term-body a { display: inline-block; margin-top: 4px; font-weight: 600; }
.signup-terms.is-invalid { border-color: #dc2626; }

/* ── 좁은 화면 ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .auth-body { padding: 0; align-items: stretch; background: #fff; }
    .auth-card { min-height: 100vh; border-radius: 0; box-shadow: none; }
    .auth-panel { flex-basis: 100%; padding: 28px 24px 32px; gap: 20px; }
    .auth-panel h1 { font-size: 21px; margin: 0; }
    .auth-panel-body { gap: 0; }
    .auth-panel.is-top .auth-panel-body { margin-top: 0; }
    .auth-lede, .auth-features { display: none; }   /* 휴대폰에서는 로고 + 한 줄만 */
    .auth-form-side { align-items: flex-start; padding: 28px 20px 24px; }
    .signup-grid { grid-template-columns: minmax(0, 1fr); }
    /* 우하단 고정 AI 가이드 위젯이 마지막 줄(로그아웃 등)을 가리지 않도록 스크롤 여유 */
    .auth-body.has-floating-widget .auth-form-side { padding-bottom: 140px; }
}
