/* auth-card h1, p 스타일 */
.auth-card h1 {
  margin: 0 0 6px;
  /* font-size: 26px; */
  font-size: 36px;
  letter-spacing: -0.02em;
}

.auth-card p {
  margin: 0 0 16px;
  color: var(--gray);
}

.form-row label {
  font-size: 12px;
  color: var(--gray);
}

/* dark mode input */
[data-theme="dark"] .input,
html[data-lang] .input {
  background: transparent;
}

/* account-card */
.account-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  width: 100%;
  max-width: 720px;
}

/* policy-card */
#policyModal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.policy-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.policy-modal-dialog {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: 20px;
    width: min(480px, calc(100vw - 32px));
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0.5px solid var(--border);
}

.policy-wrap {
  padding: 40px 0 70px;
}

.policy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.policy-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
}

.policy-card h2 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.policy-card p,
.policy-card li {
  color: var(--gray);
  line-height: 1.7;
}

.policy-card ul {
  margin: 10px 0 0 18px;
}

/* signup wizard */
.stepper {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 18px;
}

.step-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  /* font-size: 12px; */
  font-size: 16px;
  cursor: pointer;
}

.step-pill.is-active {
  border-color: var(--blue);
  color: var(--blue);
}

.auth-steps {
  margin-top: 10px;
}

.auth-step {
  display: none;
}

.auth-step.is-active {
  display: block;
}

.step-head h2 {
  margin: 0 0 6px;
  /* font-size: 18px; */
  font-size: 24px;
  letter-spacing: -0.01em;
}

.step-head p {
  margin: 0 0 14px;
  color: var(--gray);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  align-items: stretch;
}

.channel-card {
  width: 100%;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
}

.channel-card:hover {
  border-color: var(--blue);
}

.channel-card i {
  font-size: 18px;
  margin-top: 2px;
}

.channel-meta {
  min-width: 0;
  display: block;
}

.channel-title {
  display: block;
  font-weight: 900;
  line-height: 1.2;
  font-size: 18px;
}

.channel-desc {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-top: 4px;
  line-height: 1.35;
}

.form-hint {
  font-size: 12px;
  color: var(--gray);
  line-height: 1.5;
}

label.req::after {
  content: " *";
  color: var(--trust-low);
  font-weight: 900;
}

.agree-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.02);
}

.chk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--fg);
}

.chk input {
  margin-top: 3px;
}

#notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
  font-size: 13px;
}

#notice[data-type="error"] {
  border-color: var(--trust-low);
  background: var(--trust-low-bg);
}

#notice[data-type="ok"] {
  border-color: var(--trust-high);
  background: var(--trust-high-bg);
}

#verifyNotice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
  font-size: 13px;
}

#verifyNotice[data-type="error"] {
  border-color: var(--trust-low);
  background: var(--trust-low-bg);
}

#verifyNotice[data-type="ok"] {
  border-color: var(--trust-high);
  background: var(--trust-high-bg);
}

/* step actions */
.step-actions {
  margin-top: 28px;
}

.step-actions .btn {
  min-width: 170px;
  justify-content: center;
}

.signup-step-actions {
  margin-top: 40px;
}

.signup-step-actions .btn {
  margin-top: 8px;
}

.policy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 28px 20px;
    border-bottom: 0.5px solid var(--border);
}

.policy-modal-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.policy-modal-badge.required {
    background: #E6F1FB;
    color: #185FA5;
}

.policy-modal-badge.optional {
    background: #f3f3f3;
    color: #777;
}

.policy-modal-title {
    font-size: 17px;
    font-weight: 500;
}

.policy-modal-close {
    font-size: 20px;
    color: var(--gray);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}

.policy-modal-body {
    padding: 24px 28px;
    min-height: 200px;
    max-height: 260px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.8;
    color: var(--gray-dark);
    border-bottom: 0.5px solid var(--border);
}

.policy-modal-footer {
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.policy-modal-footer-hint {
    font-size: 12px;
    color: var(--gray-light);
}

.policy-modal-footer-actions {
    display: flex;
    gap: 8px;
}

.policy-modal-footer-actions .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

html {
    scrollbar-gutter: stable;
}

.field-error {
    display: none;
    font-size: 12px;
    color: #dc2626;
    margin-top: 5px;
}
.field-error.show {
    display: block;
}

input.has-error {
    border-color: #dc2626;
}

/* nav-account */
.nav-account {
  margin-left: 12px;
  font-weight: 600;
}

.input-disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

.input-with-btn {
  display: flex;
  gap: 8px;
  align-items: center;
}

.input-with-btn .input {
  flex: 1;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 900px) {
  .nav-account {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .channel-grid {
    grid-template-columns: 1fr;
  }
}