:root {
  --auth-bg: #f3f6f9;
  --auth-card: #ffffff;
  --auth-text: #0f172a;
  --auth-muted: #a2adbd;
  --auth-field: #f4f7fa;
  --auth-blue: #0085ff;
  --auth-green: #08bd8b;
  --auth-line: #e8edf4;
  --auth-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --auth-font: 'Inter', 'Noto Sans KR', 'Pretendard', 'Segoe UI', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.auth-body {
  margin: 0;
  background: var(--auth-bg);
  color: var(--auth-text);
  /* font-family는 헤더 폰트(Pretendard)를 덮어쓰지 않도록 auth-page-shell/register-page-shell에만 적용 */
}

.auth-page-shell,
.register-page-shell {
  font-family: var(--auth-font);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.auth-page-shell {
  min-height: 660px;
  padding: 34px 0 64px;
  background: #f3f6f9;
}

.auth-simple-wrap {
  width: min(520px, calc(100% - 32px));
  margin: 0 auto;
}

.auth-simple-wrap.auth-simple-wrap--wide {
  width: min(640px, calc(100% - 32px));
}

.auth-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 78px;
  margin-bottom: 12px;
}

.auth-logo-wrap img {
  width: 150px;
  height: 44px;
  object-fit: contain;
}

.auth-topbar,
.auth-brand,
.auth-top-link,
.auth-card-logo,
.auth-chip,
.auth-actions {
  display: none;
}

.auth-card {
  width: 100%;
  padding: 36px 36px 32px;
  border: 0;
  border-radius: 8px;
  background: var(--auth-card);
  box-shadow: var(--auth-shadow);
}

.auth-card-head {
  margin: 0 0 26px;
  text-align: center;
}

.auth-card h1,
.auth-card h2 {
  margin: 0;
  color: #101827;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-card-head p,
.auth-card p {
  margin: 10px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
}

.auth-card-head p a {
  color: var(--auth-blue);
}

.auth-form {
  display: grid;
  gap: 20px;
}

.auth-form.auth-form--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-field {
  display: grid;
  gap: 11px;
}

.auth-field.auth-field--full,
.auth-form .auth-button,
.auth-message {
  grid-column: 1 / -1;
}

.auth-field span {
  color: #0f172a;
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
}

.auth-field input,
.auth-field select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  outline: none;
  background: var(--auth-field);
  color: var(--auth-text);
  font-size: 14px;
}

.auth-field input::placeholder {
  color: transparent;
}

.auth-field input:focus,
.auth-field select:focus {
  background: #eef4fa;
  box-shadow: 0 0 0 3px rgba(0, 133, 255, 0.12);
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 5px;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.auth-button.primary {
  margin-top: 1px;
  background: var(--auth-green);
  color: #fff;
}

.auth-footer {
  min-height: 178px;
  background: #fff;
  border-top: 1px solid #e8edf4;
}

.auth-footer__inner {
  width: min(1050px, calc(100% - 48px));
  margin: 0 auto;
}

.auth-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 0 28px;
  border-bottom: 1px solid #edf1f6;
}

.auth-footer__top img {
  width: 82px;
  height: 26px;
  object-fit: contain;
  object-position: left center;
}

.auth-footer__top nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

.auth-footer__top a,
.auth-footer__bottom {
  color: #9aa5b8;
  font-size: 13px;
  font-weight: 600;
}

.auth-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 0;
}

.auth-body--register {
  background: #f3f6f9;
}

.register-page-shell {
  min-height: 680px;
  padding: 62px 0 42px;
  background: #f3f6f9;
}

.register-layout {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 64px;
  align-items: start;
}

.register-steps {
  display: grid;
  gap: 0;
  padding-top: 66px;
}

.register-step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8b95a7;
  text-align: left;
  cursor: default;
}

.register-step::after {
  content: '';
  position: absolute;
  left: 21px;
  top: 56px;
  width: 1px;
  height: 48px;
  border-left: 1px dashed #dde5ef;
}

.register-step:last-child::after {
  display: none;
}

.register-step span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #0090ff;
  font-size: 14px;
  font-weight: 700;
}

.register-step strong {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.register-step.is-active span {
  background: #0d94f5;
  color: #fff;
}

.register-step.is-complete span {
  background: rgba(13, 148, 245, 0.12);
  color: #0d94f5;
}

.register-card {
  padding: 32px 28px 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.register-card-head {
  margin-bottom: 28px;
}

.register-card-head h1 {
  margin: 0 0 14px;
  color: #101827;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
}

.register-card-head h2 {
  margin: 0;
  color: #101827;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.register-card-head h2 span {
  color: #a4afc1;
  font-size: 12px;
  vertical-align: middle;
}

.register-panel {
  display: none;
}

.register-panel.is-active {
  display: block;
}

.register-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.register-field span {
  color: #101827;
  font-size: 13px;
  font-weight: 600;
}

.register-field input,
.register-field select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  outline: none;
  background: #f4f7fa;
  color: #101827;
  font-size: 14px;
}

.register-field input::placeholder {
  color: #a8b2c2;
}

.register-field small {
  min-height: 16px;
  color: #ff3f62;
  font-size: 14px;
  line-height: 1.2;
}

.register-summary {
  display: grid;
  gap: 13px;
  padding: 20px;
  border-radius: 8px;
  background: #f6f9fc;
}

.register-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #344054;
  font-size: 17px;
}

.register-summary strong {
  color: #101827;
}

.register-note {
  margin: 22px 0 0;
  color: #8b95a7;
  font-size: 16px;
  line-height: 1.5;
}

.register-message {
  min-height: 20px;
  margin-top: 14px;
  color: #ff3f62;
  font-size: 15px;
  font-weight: 700;
}

.register-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 62px;
}

.register-button {
  min-width: 112px;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 5px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.register-button--primary {
  background: #08bd8b;
  color: #fff;
}

.register-button--ghost {
  background: #edf2f7;
  color: #667085;
}

.register-button[hidden] {
  display: none;
}

.auth-button.secondary,
.auth-button.ghost {
  background: #fff;
  color: var(--auth-blue);
  border: 1px solid var(--auth-line);
}

.auth-message {
  min-height: 22px;
  margin-top: 12px;
  color: #d92d20;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.auth-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 12px;
  background: #fbfcfe;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .auth-page-shell {
    min-height: auto;
    padding: 24px 0 40px;
  }

  .auth-card {
    padding: 40px 28px 38px;
  }

  .auth-card h1,
  .auth-card h2 {
    font-size: 28px;
  }

  .auth-form.auth-form--grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .register-page-shell {
    padding: 38px 0 36px;
    min-height: auto;
  }

  .register-layout {
    width: min(760px, calc(100% - 28px));
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .register-steps {
    padding-top: 0;
    grid-auto-flow: column;
    grid-auto-columns: minmax(120px, 1fr);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .register-step {
    min-height: 46px;
    grid-template-columns: 30px 1fr;
    gap: 8px;
    padding: 0 10px;
    border-radius: 8px;
    background: #f5f8fc;
    white-space: nowrap;
  }

  .register-step::after {
    display: none;
  }

  .register-step span {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .register-step strong {
    font-size: 13px;
  }

  .register-card {
    padding: 24px 20px 20px;
  }

  .register-card-head {
    margin-bottom: 20px;
  }

  .register-card-head h1 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .register-card-head h2 {
    font-size: 16px;
  }

  .register-actions {
    margin-top: 32px;
  }
}

@media (max-width: 640px) {
  .register-page-shell {
    padding: 26px 0 30px;
  }

  .register-layout {
    width: calc(100% - 18px);
    gap: 14px;
  }

  .register-steps {
    grid-auto-columns: minmax(92px, 1fr);
    gap: 6px;
  }

  .register-step {
    min-height: 40px;
    grid-template-columns: 20px 1fr;
    gap: 6px;
    padding: 0 8px;
  }

  .register-step span {
    width: 18px;
    height: 18px;
    font-size: 11px;
    border-radius: 4px;
  }

  .register-step strong {
    font-size: 12px;
  }

  .register-card {
    padding: 18px 14px 16px;
    border-radius: 7px;
  }

  .register-field {
    margin-bottom: 12px;
  }

  .register-field input,
  .register-field select {
    height: 42px;
    font-size: 13px;
    padding: 0 12px;
  }

  .register-summary {
    gap: 9px;
    padding: 14px;
  }

  .register-summary div {
    font-size: 14px;
  }

  .register-note {
    margin-top: 14px;
    font-size: 13px;
  }

  .register-actions {
    flex-direction: column-reverse;
    gap: 8px;
    margin-top: 20px;
  }

  .register-button {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
  }
}
