.signup-shell {
  display: grid;
  gap: 24px;
  width: min(100%, 440px);
  margin: 36px auto 64px;
}

.signup-shell-wide {
  width: min(100%, 640px);
}

.signup-heading {
  display: grid;
  gap: 8px;
  text-align: center;
}

.signup-heading-left {
  text-align: left;
}

.signup-heading h1,
.signup-result h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.signup-heading-selection h1 {
  font-size: 1.5rem;
}

.signup-heading p,
.signup-result p {
  margin: 0;
  color: var(--muted);
}

.signup-kicker {
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.signup-methods {
  display: grid;
  gap: 12px;
}

.signup-method-form {
  margin: 0;
}

.signup-method {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #ffffff;
  color: #202124;
  font-weight: 760;
  text-align: center;
}

.signup-method-form .signup-method {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

a.signup-method:hover,
a.signup-method:focus-visible,
button.signup-method:hover,
button.signup-method:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 157, 116, 0.12);
}

.signup-method-local {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.signup-method-kakao {
  border-color: #fee500;
  background: #fee500;
  color: #191919;
}

.signup-method-naver {
  border-color: #03c75a;
  background: #03c75a;
  color: #ffffff;
}

.signup-method-disabled {
  background: #f1f4f2;
  color: #74817c;
}

.signup-method-disabled small {
  padding: 3px 7px;
  border: 1px solid #d5ddda;
  border-radius: 4px;
  background: #ffffff;
  color: #68756f;
  font-size: 0.72rem;
}

.signup-method-mark,
.signup-method-icon,
.google-mark {
  justify-self: start;
}

.signup-method-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 900;
}

.signup-method-mark-local {
  border: 1px solid currentColor;
}

.signup-method-mark-naver {
  background: #ffffff;
  color: #03a94c;
  font-size: 1rem;
}

.signup-method-icon {
  width: 25px;
  height: 23px;
  object-fit: contain;
}

.google-mark {
  display: inline-flex;
  font-weight: 800;
}

.google-mark span:nth-child(1),
.google-mark span:nth-child(4) { color: #4285f4; }
.google-mark span:nth-child(2),
.google-mark span:nth-child(6) { color: #ea4335; }
.google-mark span:nth-child(3) { color: #fbbc05; }
.google-mark span:nth-child(5) { color: #34a853; }

.signup-login-link {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.signup-login-link a,
.text-link,
.consent-detail {
  color: var(--brand-dark);
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signup-notice,
.signup-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cce5db;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
}

.signup-notice-warning,
.signup-error {
  border-color: #efcdd5;
  background: var(--danger-soft);
  color: var(--danger);
}

.signup-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signup-steps li {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #87938e;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.signup-steps li span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #cfd8d3;
  border-radius: 50%;
  background: #ffffff;
}

.signup-steps li.is-active {
  color: var(--brand-dark);
}

.signup-steps li.is-active span {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.signup-form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.recovery-provider-actions form {
  margin: 0;
}

.recovery-provider-actions .signup-method {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.signup-shell .button {
  min-height: 48px;
  border-radius: 8px;
}

.consent-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.consent-row input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.consent-row span {
  display: grid;
  gap: 4px;
}

.consent-row small {
  color: var(--muted);
  font-weight: 500;
}

.consent-row em {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-style: normal;
}

.consent-detail {
  justify-self: end;
  margin-top: -8px;
  font-size: 0.84rem;
}

.signup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.signup-actions-stacked {
  grid-template-columns: 1fr;
}

.signup-actions-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signup-actions-three .button {
  padding-inline: 10px;
  font-size: 0.88rem;
}

.auth-login-shell {
  display: grid;
  gap: 20px;
  width: min(100%, 440px);
  margin-inline: auto;
}

.auth-login-section {
  padding-top: 48px;
}

.auth-login-form {
  width: 100%;
}

.auth-login-submit {
  width: 100%;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.auth-social-methods form {
  margin: 0;
}

.auth-social-methods .signup-method {
  width: 100%;
}

.auth-help-links {
  display: flex;
  justify-content: center;
  gap: 0;
  font-size: 0.9rem;
}

.auth-help-links a {
  color: var(--brand-dark);
  font-weight: 750;
  text-decoration: none;
}

.auth-help-links a + a::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 14px;
  background: var(--line);
  vertical-align: -1px;
}

.text-command {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.identity-handoff {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.identity-handoff p {
  margin: 3px 0 0;
  color: var(--muted);
}

.identity-phone-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 40px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 850;
}

.signup-input-group {
  overflow: hidden;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #ffffff;
}

.signup-input-group > label,
.signup-input-group > .signup-field {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border-bottom: 1px solid #e1e7e4;
}

.signup-input-group > :last-child {
  border-bottom: 0;
}

.signup-input-group label > span:first-child,
.signup-field > label,
.standalone-field {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.signup-input-group input,
.standalone-field input {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  font: inherit;
}

.signup-availability-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.signup-availability-row .signup-check-button {
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.signup-availability-status {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.signup-availability-status.is-available {
  color: var(--brand-dark);
}

.signup-availability-status.is-unavailable {
  color: #b42318;
}

.signup-input-group input:focus,
.standalone-field input:focus {
  outline: 2px solid rgba(31, 157, 116, 0.32);
  outline-offset: 3px;
}

.password-field {
  padding-right: 56px !important;
}

.password-toggle {
  position: absolute;
  right: 8px;
  bottom: 7px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: var(--brand-soft);
}

.password-toggle span {
  width: 24px;
  height: 18px;
  background: url("../img/ui/eye-hidden.png") center / contain no-repeat;
}

.password-toggle.is-visible span {
  background-image: url("../img/ui/eye-visible.png");
}

.standalone-field {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid #cfd8d3;
  border-radius: 8px;
  background: #ffffff;
}

.form-guidance {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.signup-submit {
  width: 100%;
}

.signup-result {
  justify-items: center;
  padding-top: 52px;
  text-align: center;
}

.result-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #e0b8c2;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 1.35rem;
  font-weight: 900;
}

.result-mark-success {
  border-color: #b9ddd0;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.compact-form {
  width: 100%;
  margin-top: 8px;
  text-align: left;
}

@media (max-width: 640px) {
  .signup-shell {
    margin-top: 20px;
  }

  .signup-heading h1,
  .signup-result h1 {
    font-size: 1.5rem;
  }

  .signup-actions {
    grid-template-columns: 1fr;
  }

  .signup-actions-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .signup-steps {
    gap: 4px;
  }

  .signup-steps li {
    font-size: 0.72rem;
  }

  .consent-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .consent-row em {
    grid-column: 2;
  }
}
