/* Standalone employee login (public). Mobbin Gallery-White: ink on white, hairlines instead of
   shadows, stadium-pill controls. Deliberately shares nothing with the dashboard stylesheet. */
:root {
  --ink: #141414;
  --ink-soft: #262626;
  --text-muted: #707070;
  --text-faint: #adadad;
  --canvas: #ffffff;
  --canvas-soft: #f3f3f3;
  --field: #f0f0f0;
  --hairline: #e0e0e0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--canvas-soft);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.43;
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 32px 28px 28px;
}

.login-head {
  text-align: center;
  margin-bottom: 24px;
}

.login-mark {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  object-fit: contain;
}

.login-company {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.login-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.login-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  background: var(--field);
  border-radius: 999px;
}

.login-tab {
  flex: 1;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.login-tab.is-active {
  background: var(--canvas);
  color: var(--ink);
}

.login-status {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 회사 코드 (여러 회사가 쓰는 서버에서만, login.js): 폼 밖에 있어 폼 안 칸 간격(14px)을 따로 준다 */
.login-org {
  margin-bottom: 14px;
}

.login-org[hidden] {
  display: none;
}

.login-field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}

.login-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.login-field input:focus {
  background: var(--canvas);
  border-color: var(--ink);
}

.login-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.login-message {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--canvas-soft);
  color: var(--ink);
  font-size: 13px;
}

.login-submit {
  margin-top: 4px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.login-submit:hover:not(:disabled) {
  background: var(--ink-soft);
}

.login-submit:disabled {
  background: var(--text-faint);
  cursor: default;
}

.login-link {
  align-self: center;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.login-submit:focus-visible,
.login-tab:focus-visible,
.login-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* 계정이 없는 사람의 가입 길 (owner 10-07): 조용한 한 줄 */
.login-signup {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted, #707070);
}

.login-signup a {
  color: var(--ink, #141414);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
