/* =====================================================================
   계정/폼 페이지 (회원가입 등) — 중앙 카드 위저드
   ===================================================================== */
.auth-page { background: #fff; min-height: 100vh; }

/* 계정 화면 내부 로고. 공통 헤더 로고는 layout.css가 단독 관리한다. */
.auth-page .logo,
.auth-logo .logo { display: inline-flex; align-items: center; gap: 9px; line-height: 0; }
.auth-page .logo__mark,
.auth-logo .logo__mark { height: 44px; width: auto; aspect-ratio: 86.4702 / 63.5175; }
.auth-page .logo__wordmark,
.auth-logo .logo__wordmark { height: 17px; width: auto; aspect-ratio: 247.03 / 23.581; }

.auth-wrap { width: 400px; max-width: calc(100% - 40px); margin: 0 auto; padding: 64px 0 80px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 32px; }
.auth-logo .logo__mark { height: 34px; }
.auth-logo .logo__wordmark { height: 15px; }

/* 단계 패널 */
.step { display: none; }
.step.is-active { display: block; animation: stepIn .25s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.auth-head { font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--neutral-10); line-height: var(--lh-heading); letter-spacing: var(--tracking); margin-bottom: 28px; }

/* 필드 */
.field { margin-bottom: 18px; }
.field__label { display: block; font-size: 13px; font-weight: 500; color: var(--neutral-50); margin-bottom: 8px; }
.field__box { position: relative; display: flex; align-items: center; }
.field__box input,
.field__box select {
  width: 100%; height: 52px; padding: 0 44px 0 16px;
  border: 1px solid var(--neutral-80); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--neutral-10); background: #fff;
  transition: border-color .15s;
}
.field__box select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 8l5 5 5-5' stroke='%239b9b9b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.field__box input::placeholder { color: var(--neutral-60); }
.field__box input:focus,
.field__box select:focus { outline: none; border-color: var(--orange-65); }
.field__icon { position: absolute; right: 14px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: var(--neutral-60); cursor: pointer; background: none; }
.field__caption { margin-top: 7px; font-size: 12px; color: var(--neutral-50); }

.field.is-error .field__box input,
.field.is-error .field__box select { border-color: var(--red-65); }
.field.is-error .field__caption { color: var(--red-65); }
.field.is-ok .field__box input { border-color: var(--green-65); }
.field.is-ok .field__caption { color: var(--green-65); }

/* 인라인 (휴대폰 + 인증버튼) */
.field--inline .field__box { gap: 8px; }
.field--inline input { flex: 1; }
.inline-btn { flex: 0 0 auto; height: 52px; padding: 0 16px; border: 1px solid var(--orange-65); border-radius: var(--radius-sm); background: #fff; color: var(--orange-65); font-size: 14px; font-weight: 600; white-space: nowrap; }
.inline-btn:hover { background: var(--orange-100); }

/* 체크박스 */
.checkrow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 8px 0 22px;
  padding: 10px 12px;
  border: 1px solid var(--neutral-90);
  border-radius: var(--radius-sm);
  background: var(--neutral-100);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.checkrow:hover { background: #fff; border-color: var(--orange-90); }
.checkrow:focus-within { border-color: var(--orange-65); box-shadow: 0 0 0 3px rgba(255,95,32,.10); }
.checkrow input { position: absolute; opacity: 0; }
.checkrow__box { width: 24px; height: 24px; border: 1.5px solid var(--neutral-70); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: .15s; background: #fff; }
.checkrow input:checked + .checkrow__box { background: var(--orange-65); border-color: var(--orange-65); }
.checkrow input:checked + .checkrow__box::after { content: ""; width: 11px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); }
.checkrow > span:not(.checkrow__box) { font-size: 14px; color: var(--neutral-30); line-height: var(--lh-body); }
.checkrow a { color: var(--orange-60); text-decoration: underline; }

/* 기본 버튼 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--orange-65);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(255,95,32,.18);
  transition: background .15s, box-shadow .15s, transform .15s;
}
.btn-primary:hover { background: var(--orange-60); box-shadow: 0 10px 22px rgba(255,95,32,.22); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled {
  background: var(--neutral-90);
  border-color: var(--neutral-80);
  color: var(--neutral-60);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.auth-sub { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: var(--neutral-50); }
.auth-sub a { color: var(--neutral-30); font-weight: 600; text-decoration: underline; }

/* 완료 화면 */
.auth-done { text-align: center; padding-top: 8px; }
.auth-done__title { font-size: 22px; font-weight: 700; color: var(--neutral-10); margin-bottom: 14px; }
.auth-done__desc { font-size: 14px; color: var(--neutral-50); line-height: 1.6; margin-bottom: 32px; }

/* 모달 */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: none; align-items: center; justify-content: center; z-index: 200; }
.modal-overlay.is-open { display: flex; }
.modal { width: 320px; max-width: calc(100% - 40px); background: #fff; border-radius: var(--radius-md); padding: 32px 24px 24px; text-align: center; }
.modal__title { font-size: 17px; font-weight: 700; color: var(--neutral-10); margin-bottom: 10px; }
.modal__desc { font-size: 14px; color: var(--neutral-50); line-height: 1.6; margin-bottom: 24px; }
.modal .btn-primary { height: 48px; }

@media (max-width: 480px) {
  .auth-wrap { padding: 40px 0 56px; }
  .auth-head { font-size: 20px; }
}
