/* ============================================================
   Young Tour · 인증 모달 스타일 (Concept A · Classic Trust)
   - 아이보리 페이퍼 배경 + 네이비 잉크 + 세리프 헤드라인
   ============================================================ */

/* 상단 유틸리티 바 슬롯 (인라인) */
.utility [data-auth-slot] { display: inline; }
.utility [data-auth-slot] .yt-auth-hi {
  color: #fff; margin-left: 20px; letter-spacing: 0.5px;
}
.utility [data-auth-slot] .yt-auth-hi strong {
  color: #28d5a7; font-weight: 700;
}

/* ---------- 모달 ---------- */
.yt-auth-modal[hidden] { display: none !important; }
.yt-auth-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: ytFade .18s ease;
}
@keyframes ytFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ytLift { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.yt-auth-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.yt-auth-dialog {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fdfbf6;
  border: 1px solid rgba(30,58,95,0.15);
  box-shadow: 0 40px 80px rgba(10,22,40,0.35);
  padding: 40px 40px 32px;
  animation: ytLift .28s cubic-bezier(.2,.7,.2,1);
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e3a5f;
  border-radius: 4px;
}

/* 좌측 상단 인장 느낌 라인 */
.yt-auth-dialog::before {
  content: '';
  position: absolute; top: 0; left: 40px; right: 40px;
  height: 4px; background: #1e3a5f;
}

.yt-auth-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: 0; background: transparent;
  font-size: 26px; line-height: 1;
  color: #8a9baa; cursor: pointer;
  border-radius: 50%;
  transition: all .15s;
}
.yt-auth-close:hover { background: rgba(30,58,95,0.08); color: #1e3a5f; }

/* 브랜드 마크 */
.yt-auth-brand { text-align: center; margin-bottom: 24px; }
.yt-auth-mark {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  letter-spacing: 6px;
  color: #1e3a5f;
}
.yt-auth-since {
  margin-top: 4px;
  font-size: 10px; letter-spacing: 3px;
  color: #8a9baa;
}

/* 탭 */
.yt-auth-tabs {
  display: flex;
  border-bottom: 1px solid rgba(30,58,95,0.15);
  margin-bottom: 28px;
}
.yt-auth-tab {
  flex: 1; background: transparent; border: 0;
  padding: 14px 0;
  font-family: inherit;
  font-size: 14px; font-weight: 600;
  color: #8a9baa;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  transition: color .15s;
}
.yt-auth-tab:hover { color: #1e3a5f; }
.yt-auth-tab.is-on { color: #1e3a5f; }
.yt-auth-tab.is-on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: #1e3a5f;
}

/* 타이틀 */
.yt-auth-title {
  font-family: 'Playfair Display', 'Noto Sans KR', serif;
  font-size: 24px; font-weight: 700; line-height: 1.3;
  margin-bottom: 6px;
  color: #1e3a5f;
}
.yt-auth-sub {
  font-size: 13px; color: #5a6c7d; line-height: 1.6;
  margin-bottom: 22px;
}

/* 필드 */
.yt-auth-field { display: block; margin-bottom: 14px; }
.yt-auth-field > span {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: #5a6c7d;
  margin-bottom: 6px;
}
.yt-auth-field > span em {
  font-style: normal; font-weight: 400;
  color: #8a9baa; letter-spacing: 0.5px;
  text-transform: none;
}
.yt-auth-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(30,58,95,0.2);
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  color: #1e3a5f;
  border-radius: 2px;
  transition: border-color .15s, box-shadow .15s;
}
.yt-auth-field input:focus {
  outline: 0;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}
.yt-auth-field input::placeholder { color: #b0bcc7; }

/* 옵션 row */
.yt-auth-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: 6px 0 18px;
  font-size: 12px;
}
.yt-auth-check {
  display: inline-flex; align-items: center; gap: 8px;
  color: #5a6c7d; cursor: pointer;
  font-size: 12px;
}
.yt-auth-check input[type=checkbox] {
  width: 15px; height: 15px;
  accent-color: #1e3a5f;
  cursor: pointer;
}
.yt-auth-agree {
  margin: 10px 0 4px;
  padding: 12px;
  background: rgba(30,58,95,0.04);
  border-left: 2px solid #1e3a5f;
}
.yt-auth-agree strong { color: #1e3a5f; }

.yt-auth-link {
  color: #5a6c7d; text-decoration: none;
  border-bottom: 1px solid rgba(30,58,95,0.2);
  padding-bottom: 1px;
}
.yt-auth-link:hover { color: #1e3a5f; border-color: #1e3a5f; }

/* 메시지 */
.yt-auth-msg {
  min-height: 20px;
  margin: 10px 0 4px;
  font-size: 12px;
  color: transparent;
  transition: color .15s;
}
.yt-auth-msg.is-error {
  color: #d94f4f;
  padding: 8px 12px;
  background: rgba(217,79,79,0.08);
  border-left: 2px solid #d94f4f;
}
.yt-auth-msg.is-ok {
  color: #1a6b47;
  padding: 8px 12px;
  background: rgba(40,213,167,0.1);
  border-left: 2px solid #28d5a7;
}

/* 제출 버튼 */
.yt-auth-submit {
  width: 100%;
  padding: 14px;
  background: #1e3a5f;
  color: #fff;
  border: 0;
  font-family: inherit;
  font-size: 13px; font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background .15s;
  border-radius: 2px;
  margin-top: 6px;
}
.yt-auth-submit:hover { background: #0f2340; }
.yt-auth-submit:active { transform: translateY(1px); }

/* 대체 안내 */
.yt-auth-alt {
  text-align: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(30,58,95,0.1);
  font-size: 13px;
  color: #5a6c7d;
}
.yt-auth-alt a {
  color: #1e3a5f;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #1e3a5f;
  padding-bottom: 1px;
  margin-left: 4px;
}
.yt-auth-alt a:hover { color: #287dfa; border-color: #287dfa; }

/* 토스트 */
.yt-toast {
  position: fixed;
  left: 50%; bottom: 40px;
  transform: translate(-50%, 20px);
  background: #1e3a5f; color: #fff;
  padding: 14px 24px;
  border-radius: 2px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 12px 32px rgba(10,22,40,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 10000;
  font-family: 'Noto Sans KR', sans-serif;
}
.yt-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* 모바일 */
@media (max-width: 520px) {
  .yt-auth-dialog { padding: 32px 24px 24px; }
  .yt-auth-dialog::before { left: 24px; right: 24px; }
  .yt-auth-title { font-size: 20px; }
}
