/* =============================================================
   관문 — 로그인과 회사 선택. **셸 안이 아니다.**
   로그인 전에는 사이드바가 없어야 하고, 회사를 고른 뒤에야 셸이 열린다.
   그래서 메뉴 항목이 아니라 앞단계로 둔다.
   ============================================================= */
.gate {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px;
}
.gate-box { width: 100%; max-width: 340px; }

.gate-brand { text-align: center; margin-bottom: 18px; }
.gate-brand b {
  display: block; font-size: 25px; font-weight: 800;
  letter-spacing: -.03em; color: var(--accent);
}
.gate-brand span { font-size: 12px; color: var(--faint); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.card h2 { font-size: 14px; font-weight: 700; margin: 0 0 3px; }
.card .note { color: var(--muted); font-size: 12px; margin: 0 0 14px; line-height: 1.7; }

.f { margin-bottom: 10px; }
.f label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.f input {
  width: 100%; height: 34px; padding: 0 10px;
  border: 1px solid var(--btn-bd); border-radius: 8px;
  background: var(--surface); color: var(--text); font: inherit; outline: 0;
}
.f input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-ring); }
.f .err { color: var(--danger); font-size: 11.5px; margin-top: 4px; display: none; line-height: 1.6; }
.f.bad input { border-color: var(--danger); }
.f.bad .err { display: block; }

.gate .btn { width: 100%; height: 36px; margin-top: 4px; }
.gate-alt {
  margin-top: 12px; text-align: center;
  font-size: 12px; color: var(--muted);
}
.gate-alt button {
  border: 0; background: transparent; color: var(--accent);
  font: inherit; font-weight: 700; cursor: pointer; padding: 2px 4px;
}
.gate-alt button:hover { text-decoration: underline; }

/* 회사 고르기 — 한 계정으로 여러 회사를 오간다. */
.biz {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 11px 12px; margin-bottom: 7px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: inherit; font: inherit;
  text-align: left; cursor: pointer; transition: .13s;
}
.biz:hover:not(:disabled) { border-color: var(--btn-bd-s); background: var(--hover); }
.biz:disabled { cursor: default; }
.biz .g {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  background: var(--accent-bg); color: var(--accent);
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.biz .m { flex: 1; min-width: 0; }
.biz .m b { display: block; font-size: 13px; font-weight: 700; margin-bottom: 1px; }
.biz .m span { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.gate-info {
  margin-top: 12px; background: var(--head); border-radius: 9px;
  padding: 10px 12px; color: var(--muted); font-size: 11.5px; line-height: 1.8;
}
.gate-info b { color: var(--text); }

/* 조회 결과 — 갈림길을 그 자리에서 말한다. 다음 화면으로 보내 놓고 설명하지 않는다. */
.find-result {
  margin-top: 12px; padding: 12px 13px;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2);
}
.find-result b { display: block; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.find-result span {
  display: block; font-size: 12px; color: var(--muted); line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.find-result span.ok { color: var(--accent); font-weight: 700; }
.find-result .btn { margin-top: 10px; }

/* 연결된 회사가 하나도 없는 새 계정 — 빈 자리를 그냥 두지 않는다. */
.biz-empty {
  padding: 18px 14px; text-align: center;
  border: 1px dashed var(--border); border-radius: 9px;
}
.biz-empty b { display: block; font-size: 13px; margin-bottom: 5px; }
.biz-empty span { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* 회사 목록 밑에 문이 둘이면 줄을 나눈다 — 나란히 두면 어느 쪽이 주된 길인지 안 보인다. */
.gate-alt button + button { margin-left: 10px; }

/* 문의 전화 — 브랜드 줄 아래에 조용히 선다. 1인 회사의 최고관리자가 잠기면
   연락할 길이 이것뿐이다(관문·권한 §1-1). 번호는 settings 에서 온다. */
.gate-call {
  margin: -10px 0 16px; text-align: center;
  font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums;
}
