:root {
  color-scheme: light;
  font-family: Pretendard, "Noto Sans KR", "Segoe UI", sans-serif;
  color: #182230;
  background: #eef2f5;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #eef2f5;
}

button,
input { font: inherit; }

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

.login-panel {
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid #d8dfe6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(20 35 52 / 12%);
}

.audience-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.audience-option {
  display: grid;
  min-width: 0;
  min-height: 78px;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #cdd5dd;
  border-radius: 8px;
  color: #263445;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.audience-option:hover,
.audience-option:focus-visible {
  border-color: #176b55;
  outline: 3px solid rgb(23 107 85 / 11%);
}

.audience-option.active {
  border-color: #176b55;
  background: #f0f8f5;
  box-shadow: inset 0 0 0 1px #176b55;
}

.audience-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #176b55;
  background: #e1f0eb;
  font-size: 13px;
  font-weight: 900;
}

.audience-option > span:last-child,
.audience-option strong,
.audience-option small {
  display: block;
  min-width: 0;
}

.audience-option strong { font-size: 13px; }
.audience-option small { margin-top: 4px; color: #697586; font-size: 10px; line-height: 1.35; }

.audience-help {
  min-height: 34px;
  margin: 0 0 6px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #526071;
  background: #f4f7f9;
  font-size: 11px;
  line-height: 1.55;
}

.employee-login {
  width: 100%;
  margin-top: 14px;
  padding: 11px 0 0;
  border: 0;
  border-top: 1px solid #e0e5ea;
  color: #596879;
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.employee-login:hover,
.employee-login:focus-visible { color: #176b55; outline: none; }

body.employee-mode .audience-option { opacity: 0.62; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #176b55;
  font-size: 19px;
  font-weight: 800;
}

.brand strong,
.brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 1px; color: #697586; font-size: 11px; }

.heading { margin: 38px 0 24px; }
.heading p { margin: 0 0 7px; color: #176b55; font-size: 11px; font-weight: 800; }
.heading h1 { margin: 0 0 9px; font-size: 27px; letter-spacing: 0; }
.heading span { color: #697586; font-size: 13px; }

.field { display: block; margin-top: 17px; }
.field > span:first-child { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #c8d1da;
  border-radius: 7px;
  color: #182230;
  background: #fff;
  outline: none;
}
.field input:focus { border-color: #176b55; box-shadow: 0 0 0 3px rgb(23 107 85 / 13%); }

.password-field { position: relative; display: block; }
.password-field input { padding-right: 46px; }
.password-field button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #657282;
  background: transparent;
  cursor: pointer;
}
.password-field button:hover,
.password-field button:focus-visible { background: #edf1f4; outline: none; }
.password-field svg { width: 18px; height: 18px; }

.login-error {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 7px;
  color: #922f2f;
  background: #faecec;
  font-size: 12px;
}

.submit-button {
  display: inline-flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #176b55;
  font-weight: 750;
  cursor: pointer;
}
.submit-button:hover,
.submit-button:focus-visible { background: #0f5745; outline: 3px solid rgb(23 107 85 / 16%); }
.submit-button svg { width: 18px; height: 18px; }
.submit-button[href] { text-decoration: none; }

.signup-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #d8e5e0;
  border-radius: 8px;
  color: #435262;
  background: #f5faf8;
  font-size: 12px;
}
.signup-link span,
.signup-link strong,
.signup-link small { display: block; }
.signup-link strong { color: #21312d; font-size: 12px; }
.signup-link small { margin-top: 4px; color: #697586; font-size: 10px; line-height: 1.4; }
.signup-link a {
  flex: 0 0 auto;
  min-width: 84px;
  padding: 9px 12px;
  border-radius: 6px;
  color: #176b55;
  background: #e0f1eb;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
}
.signup-link a:hover,
.signup-link a:focus-visible { text-decoration: underline; outline: none; }

@media (max-width: 520px) {
  .login-shell { align-items: start; padding: 16px; }
  .login-panel { margin-top: 9vh; padding: 24px 20px; }
  .audience-selector { grid-template-columns: 1fr; }
  .audience-option { min-height: 68px; }
  .signup-link { align-items: stretch; flex-direction: column; gap: 10px; }
  .signup-link a { width: 100%; }
}
