/* 팜시크릿 로그인 — 심플 단일 카드 */

.ps-login-body { background: #f7f8fa; }

.ps-login-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 16px 80px;
}

/* 카드 */
.ps-login-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 16px;
  padding: 40px 36px 32px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px -16px rgba(15, 23, 42, 0.10);
}

/* 헤더 */
.ps-login-head {
  text-align: center;
  margin-bottom: 24px;
}

/* 섹션 타이틀 (간편 로그인 / 일반 로그인) */
.ps-login-section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  letter-spacing: -0.015em;
}
.ps-login-section-title--spaced {margin-top: 33px;}
.ps-login-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #111827;
  margin: 0 0 6px;
}
.ps-login-sub {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* 폼 */
.ps-login-form { display: grid; gap: 12px; }

.ps-login-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.ps-login-input::placeholder { color: #9ca3af; }
.ps-login-input:hover { border-color: #9ca3af; }
.ps-login-input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px rgba(254, 105, 27, 0.12);
}

/* 비밀번호 토글 */
.ps-login-pw-wrap { position: relative; }
.ps-login-pw-wrap .ps-login-input { padding-right: 44px; }
.ps-login-pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.ps-login-pw-toggle:hover { color: var(--color-brand); background: var(--color-brand-soft); }
.ps-login-pw-toggle.is-on { color: var(--color-brand-dark); }

/* 자동 로그인 체크박스 */
.ps-login-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  user-select: none;
  margin: 4px 0 4px;
}
.ps-login-check input { position: absolute; opacity: 0; pointer-events: none; }
.ps-login-check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid #d1d5db;
  border-radius: 5px;
  background: #fff;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.ps-login-check input:checked + .ps-login-check-box {
  border-color: var(--color-brand);
  background: var(--color-brand);
}
.ps-login-check input:checked + .ps-login-check-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.ps-login-check input:focus-visible + .ps-login-check-box {
  box-shadow: 0 0 0 4px rgba(254, 105, 27, 0.18);
}

/* 제출 버튼 */
.ps-login-submit {
  margin-top: 4px;
  height: 50px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: var(--color-brand);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s, transform 0.12s;
}
.ps-login-submit:hover { background: var(--color-brand-dark); }
.ps-login-submit:active { transform: translateY(1px); }
.ps-login-submit:focus-visible {
  outline: 3px solid rgba(254, 105, 27, 0.40);
  outline-offset: 2px;
}

.ps-login-error {
  margin: 4px 0 0;
  font-size: 13px;
  color: #b91c1c;
  line-height: 1.5;
}

/* 보조 링크 */
.ps-login-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 18px 0 4px;
  font-size: 14px;
  color: #9ca3af;
}
.ps-login-links a {
  color: #6b7280;
  transition: color 0.15s;
}
.ps-login-links a:hover {
  color: var(--color-brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 구분선 */
.ps-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: #9ca3af;
  font-size: 12px;
}
.ps-login-divider::before,
.ps-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* 소셜 로그인 */
.ps-login-social { display: grid; gap: 8px; }
.ps-social-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: filter 0.15s, transform 0.12s, background 0.15s, border-color 0.15s;
}
.ps-social-btn:hover { filter: brightness(0.97); }
.ps-social-btn:active { transform: translateY(1px); }
.ps-social-btn:focus-visible {
  outline: 3px solid rgba(254, 105, 27, 0.30);
  outline-offset: 2px;
}

.ps-social-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ps-social-icon svg { display: block; }

.ps-social-btn--kakao  { background: #FEE500; color: #181600; }
.ps-social-btn--naver  { background: #03C75A; color: #fff; }
.ps-social-btn--google {
  background: #fff;
  color: #1f2937;
  border-color: #dadce0;
}
.ps-social-btn--google:hover {
  background: #f7f8fa;
  filter: none;
  border-color: #c9cdd2;
}

/* 빠른 가입 홍보 배너 */
.ps-login-promo {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 460px;
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fffbed;
  color: #1f2937;
  /* border: 1px solid #FDE7A8; */
  /* box-shadow: 0 6px 18px -12px rgba(120, 53, 15, 0.25); */
  text-decoration: none;
}

.ps-login-promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(120, 53, 15, 0.22));
}
.ps-login-promo-icon svg { display: block; }

.ps-login-promo-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.ps-login-promo-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}
.ps-login-promo-desc {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.55;
  word-break: keep-all;
}
.ps-login-promo-desc em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-brand-dark);
}

.ps-login-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-brand);
  flex-shrink: 0;
  white-space: nowrap;
}

/* 모바일 */
@media (max-width: 480px) {
  .ps-login-main { padding: 32px 12px 56px; }
  .ps-login-card {
    padding: 32px 22px 26px;
    border-radius: 14px;
    box-shadow: none;
    border-color: #e5e7eb;
  }
  .ps-login-promo {
    padding: 16px;
    gap: 10px;
  }
  .ps-login-promo-icon {
    width: 62px;
    height: 52px;
  }
  .ps-login-promo-icon svg { width: 52px; height: 52px; }
  .ps-login-promo-desc {font-size: 14px;}
  .ps-login-promo-cta {
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* ═════════════════════════════════════════════
   인증 페이지 공통 (회원가입 / 아이디찾기 / 비밀번호찾기)
   ═════════════════════════════════════════════ */

/* 카드 폭 variant */
.ps-login-card--wide { max-width: 600px; padding: 44px 40px 36px; }
.ps-login-card--wide .ps-login-form { gap: 18px; }

/* 안내 박스 */
.ps-auth-notice {
  margin: -8px 0 18px;
  padding: 12px 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.55;
}
.ps-auth-notice strong { color: #111827; font-weight: 600; }

/* 탭 (아이디찾기 휴대전화/이메일) */
.ps-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 18px;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 4px;
}
.ps-auth-tab {
  appearance: none;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  letter-spacing: -0.01em;
}
.ps-auth-tab.is-active {
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* 인풋 + 버튼 가로 그룹 (인증번호 받기, 중복확인 등) */
.ps-auth-input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.ps-auth-input-group .ps-login-input { flex: 1; }
.ps-auth-input-btn {
  flex-shrink: 0;
  height: 48px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  letter-spacing: -0.01em;
}
.ps-auth-input-btn:hover {
  background: var(--color-brand-soft);
  border-color: var(--color-brand);
  color: var(--color-brand-dark);
}
.ps-auth-input-btn:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* 인증번호 타이머 (인풋 우측) */
.ps-auth-timer-wrap { position: relative; }
.ps-auth-timer {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #dc2626;
  pointer-events: none;
}
.ps-auth-timer-wrap .ps-login-input { padding-right: 56px; }

/* 필드 라벨 (회원가입 폼) */
.ps-auth-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.ps-auth-label-req::after {
  content: '*';
  margin-left: 3px;
  color: var(--color-brand);
}
.ps-auth-help {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.55;
}
.ps-auth-help--ok { color: #059669; }
.ps-auth-help--err { color: #b91c1c; }

/* 회원 그룹 큰 카드 (회원가입 최상단 — 약사 / 공인중개사 / 분양사업자 / 기업) */
.ps-auth-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ps-auth-group-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 16px 16px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ps-auth-group-card:hover {
  border-color: #d1d5db;
}
.ps-auth-group-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ps-auth-group-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border: 1.5px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}
.ps-auth-group-check::after {
  content: '';
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
  transition: opacity 0.15s;
}
.ps-auth-group-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
}
.ps-auth-group-name {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.015em;
}
.ps-auth-group-desc {
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.55;
  word-break: keep-all;
}
.ps-auth-group-card:has(input:checked) {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  box-shadow: 0 0 0 3px rgba(254, 105, 27, 0.10);
}
.ps-auth-group-card:has(input:checked) .ps-auth-group-name {
  color: var(--color-brand-dark);
}
.ps-auth-group-card:has(input:checked) .ps-auth-group-check {
  border-color: var(--color-brand);
  background: var(--color-brand);
}
.ps-auth-group-card:has(input:checked) .ps-auth-group-check::after {
  opacity: 1;
}
.ps-auth-group-card:focus-within {
  outline: 3px solid rgba(254, 105, 27, 0.20);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .ps-auth-groups { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ps-auth-group-card { padding: 14px 12px 12px; }
  .ps-auth-group-icon { font-size: 22px; }
  .ps-auth-group-name { font-size: 14px; }
  .ps-auth-group-desc { font-size: 11.5px; }
}

/* 회원 유형별 가이드 박스 */
.ps-auth-group-guide {
  padding: 18px 20px 16px;
  background: #FFFBED;
  border: 1px solid #FDE7A8;
  border-radius: 12px;
}
.ps-auth-group-guide[hidden] { display: none; }
.ps-auth-group-guide-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.015em;
}
.ps-auth-group-guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ps-auth-group-guide-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 6px;
  word-break: keep-all;
}
.ps-auth-group-guide-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-brand);
}
.ps-auth-group-guide-list li:last-child { margin-bottom: 0; }
.ps-auth-group-guide-list strong {
  font-weight: 700;
  color: #1f2937;
}
.ps-auth-group-guide-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid #FDE7A8;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .ps-auth-group-guide { padding: 14px 16px 12px; }
  .ps-auth-group-guide-title { font-size: 14px; }
  .ps-auth-group-guide-list li { font-size: 13px; padding-left: 14px; }
  .ps-auth-group-guide-list li::before { left: 2px; }
}

/* 라디오 그룹 (소형 라디오 — 다른 페이지용) */
.ps-auth-radios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.ps-auth-radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: #374151;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.ps-auth-radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ps-auth-radio-dot {
  width: 16px;
  height: 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.ps-auth-radio input:checked ~ .ps-auth-radio-dot {
  border-color: var(--color-brand);
  background: var(--color-brand);
  box-shadow: inset 0 0 0 3px #fff;
}
.ps-auth-radio:has(input:checked) {
  border-color: var(--color-brand);
  background: var(--color-brand-soft);
  color: var(--color-brand-dark);
  font-weight: 600;
}

/* 약관 동의 */
.ps-auth-terms {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
  background: #fafafa;
}
.ps-auth-terms-all {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 14px;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.ps-auth-terms-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ps-auth-terms-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.5;
}
.ps-auth-terms-item label {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.ps-auth-terms-item .ps-auth-terms-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--color-brand-dark);
}
.ps-auth-terms-item .ps-auth-terms-tag--opt { color: #6b7280; }
.ps-auth-terms-item .ps-auth-terms-view {
  font-size: 12.5px;
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ps-auth-terms-item .ps-auth-terms-view:hover { color: var(--color-brand-dark); }

/* 결과 카드 (아이디 찾기 성공 후) */
.ps-auth-result {
  margin-top: 18px;
  padding: 18px 16px;
  background: var(--color-brand-soft);
  border: 1px solid rgba(254, 105, 27, 0.22);
  border-radius: 12px;
  text-align: center;
}
.ps-auth-result-label {
  font-size: 12px;
  font-family: var(--font-label);
  letter-spacing: 0.18em;
  color: var(--color-brand-dark);
}
.ps-auth-result-value {
  margin: 6px 0 4px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.02em;
}
.ps-auth-result-meta {
  font-size: 12px;
  color: #6b7280;
}
.ps-auth-result-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.ps-auth-result-actions > * { flex: 1; }
.ps-auth-result-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ps-auth-result-btn--primary {
  background: var(--color-brand);
  color: #fff;
  border: 1px solid var(--color-brand);
}
.ps-auth-result-btn--primary:hover { background: var(--color-brand-dark); border-color: var(--color-brand-dark); }
.ps-auth-result-btn--ghost {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
}
.ps-auth-result-btn--ghost:hover { border-color: var(--color-brand); color: var(--color-brand-dark); }

/* 모바일 보정 */
@media (max-width: 480px) {
  .ps-login-card--wide { padding: 32px 22px 26px; }
  .ps-login-card--wide .ps-login-form { gap: 14px; }
  .ps-auth-radios { grid-template-columns: 1fr 1fr; }
  .ps-auth-input-btn { padding: 0 10px; font-size: 12px; }
  .ps-auth-terms { padding: 14px 16px; }
  .ps-auth-terms-all { font-size: 14px; }
  .ps-auth-terms-item { font-size: 12.5px; }
}
