/* HAVES auth pages — register / find / reset */
.ha-auth .ha-auth-card {
  padding: 22px 20px 24px;
}
.ha-auth-form {
  gap: 14px;
}
.ha-auth-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--vp-line, rgba(42, 36, 28, 0.09));
}
.ha-auth-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.ha-auth-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ha-auth-block__head h2 {
  margin: 0;
  font-family: var(--vp-font, Outfit, 'Noto Sans KR', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--vp-ink, #1a2433);
}
.ha-auth-badge {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #2a7de0, #0d3d7a);
  border-radius: 999px;
  padding: 4px 10px;
}
.ha-auth-terms {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid var(--vp-line, rgba(42, 36, 28, 0.12));
  border-radius: 16px;
  padding: 14px 16px;
  background: #f8f5f0;
  color: #2a3545;
  font-size: 0.82rem;
  line-height: 1.65;
  font-family: 'Noto Sans KR', sans-serif;
}
.ha-auth-terms:focus {
  outline: none;
  border-color: rgba(26, 95, 180, 0.45);
  box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.12);
}
.ha-auth-table-wrap {
  overflow: auto;
  border: 1px solid var(--vp-line, rgba(42, 36, 28, 0.12));
  border-radius: 16px;
  background: #fff;
}
.ha-auth-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.ha-auth-table th,
.ha-auth-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--vp-line, rgba(42, 36, 28, 0.09));
  vertical-align: top;
  text-align: left;
}
.ha-auth-table th {
  background: #f3efe8;
  font-weight: 800;
  white-space: nowrap;
}
.ha-auth-table tr:last-child td {
  border-bottom: 0;
}
.ha-auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #2a3545;
  cursor: pointer;
}
.ha-auth-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #0d3d7a;
  flex: 0 0 auto;
}
.ha-auth-check--all {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(26, 95, 180, 0.08);
  border: 1px solid rgba(26, 95, 180, 0.14);
}
.ha-auth-note {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #4a5d75;
  background: #f3efe8;
  border-radius: 14px;
  padding: 12px 14px;
}
.ha-auth-label {
  display: block;
  margin: 0 0 -6px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #2a3545;
}
.ha-auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.ha-auth-actions .vp-btn {
  flex: 1;
  justify-content: center;
  text-decoration: none;
}
.ha-auth-cert-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ha-auth-captcha {
  margin-top: 4px;
}
.ha-auth-captcha .captcha,
.ha-auth-captcha #captcha {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* register form shell */
.ha-reg {
  max-width: 760px;
}
.ha-reg .ha-auth-card {
  padding: 8px 8px 20px;
}
.ha-reg .ha-reg-inner {
  padding: 8px 12px 4px;
}
.ha-reg .ha-reg-req {
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4a5d75;
  margin-bottom: 8px;
}
.ha-reg section > h2 {
  font-family: var(--vp-font, Outfit, 'Noto Sans KR', sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--vp-ink, #1a2433);
  border-bottom: 1px solid var(--vp-line, rgba(42, 36, 28, 0.09)) !important;
  padding-bottom: 10px !important;
  margin-bottom: 14px !important;
}
.ha-reg .input-group {
  margin-bottom: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--vp-line, rgba(42, 36, 28, 0.12));
  background: #fff;
}
.ha-reg .input-group-text {
  background: #f3efe8;
  border: 0;
  font-size: 0.84rem;
  font-weight: 800;
  color: #2a3545;
  min-width: 118px;
}
.ha-reg .form-control,
.ha-reg .form-select {
  border: 0;
  box-shadow: none !important;
  font-size: 0.95rem;
  padding-top: 12px;
  padding-bottom: 12px;
  background: #fff;
}
.ha-reg .form-control:focus {
  background: #fffefb;
}
.ha-reg .alert {
  border: 0;
  border-radius: 14px;
  background: #f3efe8;
  color: #4a5d75;
  font-size: 0.86rem;
}
.ha-reg .alert-info {
  background: rgba(26, 95, 180, 0.08);
  color: #0d3d7a;
}
.ha-reg .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2a3545;
}
.ha-reg .ha-auth-actions {
  border-top: 1px solid var(--vp-line, rgba(42, 36, 28, 0.09));
  padding-top: 18px;
  margin-top: 8px;
}
.ha-reg .btn-group .btn {
  border-radius: 12px !important;
  font-weight: 700;
}

/* content / provision page */
.ha-content.vp-page {
  max-width: 860px;
}
.ha-content .ha-content-body {
  line-height: 1.75;
  word-break: keep-all;
}
.ha-content .haves-terms {
  font-size: 0.9rem;
  color: #2a3545;
}

@media (max-width: 576px) {
  .ha-reg .input-group {
    flex-direction: column;
    align-items: stretch;
  }
  .ha-reg .input-group-text {
    min-width: 0;
    width: 100%;
    border-radius: 0 !important;
  }
  .ha-auth-actions {
    flex-direction: column;
  }
}

/* register result */
.ha-reg-result .ha-result-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ha-result-hero {
  text-align: center;
  padding: 8px 4px 4px;
}
.ha-result-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #2a7de0, #0d3d7a);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 12px 28px rgba(13, 61, 122, 0.28);
}
.ha-result-hero h2 {
  margin: 0 0 6px;
  font-family: var(--vp-font, Outfit, 'Noto Sans KR', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--vp-ink, #1a2433);
}
.ha-result-hero p {
  margin: 0;
  font-size: 0.95rem;
  color: #4a5d75;
  line-height: 1.55;
}
.ha-result-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8e8, #fff3d6);
  border: 1px solid #f0d78c;
}
.ha-result-alert__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #b07800;
  font-size: 1.1rem;
  border: 1px solid rgba(176, 120, 0, 0.18);
}
.ha-result-alert strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
  color: #5a4200;
}
.ha-result-alert p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #6a5420;
}
.ha-result-meta {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8f5f0;
  border: 1px solid var(--vp-line, rgba(42, 36, 28, 0.09));
}
.ha-result-meta > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  align-items: baseline;
}
.ha-result-meta dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  color: #6a7788;
  letter-spacing: 0.02em;
}
.ha-result-meta dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0d2438;
  word-break: break-all;
}
.ha-result-steps {
  padding: 4px 2px 0;
}
.ha-result-steps h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #1a2433;
}
.ha-result-steps ol {
  margin: 0;
  padding: 0 0 0 1.2rem;
  display: grid;
  gap: 8px;
}
.ha-result-steps li {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #2a3545;
  font-weight: 600;
}
.ha-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ha-result-actions .vp-btn {
  flex: 1 1 140px;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}
.ha-result-foot {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #6a7788;
}

@media (max-width: 576px) {
  .ha-result-meta > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .ha-result-actions {
    flex-direction: column;
  }
  .ha-result-actions .vp-btn {
    flex: 1 1 auto;
  }
}
