/**
 * AI CineCatch — 인증 페이지 공통 스타일 (로그인·회원가입·비밀번호 찾기)
 */

/* ── 시네마틱 다크 배경 (인증·계정·관리자 공통) ── */
body[data-page^="auth-"],
body[data-page="account-profile"],
body[data-page="admin-dashboard"] {
  background-color: #0a0e13;
  background-image:
    radial-gradient(ellipse 70% 55% at 12% 8%, rgba(255, 145, 35, 0.1) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 18%, rgba(80, 120, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255, 190, 80, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #07090d 0%, #0b0f14 45%, #0a0e13 100%);
  background-attachment: fixed;
}

body[data-page^="auth-"] .portal-layout-container.auth-page,
body[data-page="account-profile"] .portal-layout-container.account-profile-page,
body[data-page="admin-dashboard"] .portal-layout-container.admin-dashboard-page {
  position: relative;
  z-index: 1;
}

/* 본문 하단 → 푸터 연결 페이드 */
body[data-page^="auth-"] .portal-layout-container.auth-page::after,
body[data-page="account-profile"] .portal-layout-container.account-profile-page::after,
body[data-page="admin-dashboard"] .portal-layout-container.admin-dashboard-page::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 72px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(7, 9, 13, 0.65));
}

body[data-page^="auth-"] .portal-layout-container.auth-page {
  /* common.css 2열 포털 그리드(본문+380px 사이드) 해제 — 인증 페이지는 단일 중앙 컬럼 */
  display: block !important;
  grid-template-columns: none !important;
  max-width: 960px;
  width: 100%;
  margin: 100px auto 56px;
  padding: 0 20px 40px;
  box-sizing: border-box;
}

body[data-page="auth-signup"] .portal-layout-container.auth-page {
  max-width: 1240px;
  margin-bottom: 32px;
  padding-bottom: 32px;
}

/* 로그인·비밀번호 찾기 — 하단 여백 축소 */
body[data-page="auth-login"] .portal-layout-container.auth-page,
body[data-page="auth-forgot"] .portal-layout-container.auth-page {
  margin-bottom: 32px;
  padding-bottom: 32px;
}

/* 회원가입: 푸터 직전 과도한 빈 여백 방지 */
body[data-page="auth-signup"] .portal-layout-container.auth-page::after {
  height: 32px;
  bottom: -8px;
}

body[data-page="auth-login"] .portal-layout-container.auth-page::after,
body[data-page="auth-forgot"] .portal-layout-container.auth-page::after {
  height: 32px;
  bottom: -8px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.auth-brand-panel {
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(234, 88, 12, 0.08) 0%, rgba(255, 255, 255, 0.02) 55%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* ── 시네마틱 히어로·카드 공통 장식 ── */
.auth-cinematic-glow,
.auth-signup-hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 145, 35, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

.auth-cinematic-grain,
.auth-signup-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.015) 2px, rgba(255, 255, 255, 0.015) 3px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255, 255, 255, 0.01) 3px, rgba(255, 255, 255, 0.01) 4px);
  pointer-events: none;
  mix-blend-mode: overlay;
}

.auth-cinematic-watermark,
.auth-signup-hero-clap {
  position: absolute;
  right: 18px;
  bottom: 14px;
  font-size: 2.4rem;
  opacity: 0.12;
  filter: grayscale(0.2);
  pointer-events: none;
  user-select: none;
}

.auth-cinematic-body,
.auth-signup-hero-body {
  position: relative;
  z-index: 1;
}

.auth-cinematic-chip,
.auth-signup-hero-chip {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 193, 78, 0.35);
  background: rgba(234, 88, 12, 0.12);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(252, 211, 77, 0.95);
  text-transform: uppercase;
}

.auth-cinematic-tags,
.auth-signup-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.auth-cinematic-tag,
.auth-signup-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.auth-cinematic-tag svg,
.auth-signup-hero-tag svg {
  color: rgba(242, 193, 78, 0.9);
  flex-shrink: 0;
}

/* 로그인·비밀번호찾기 히어로 톤업 */
body[data-page="auth-login"] .auth-login-hero,
body[data-page="auth-forgot"] .auth-forgot-hero {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  padding: 30px 26px 28px;
  border: 1px solid rgba(255, 180, 70, 0.18);
  background:
    linear-gradient(135deg, rgba(234, 88, 12, 0.14) 0%, rgba(80, 120, 255, 0.06) 42%, rgba(255, 255, 255, 0.03) 100%),
    rgba(12, 16, 24, 0.82);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-page="auth-login"] .auth-login-hero .auth-brand-desc,
body[data-page="auth-forgot"] .auth-forgot-hero .auth-brand-desc {
  color: rgba(255, 255, 255, 0.72);
}

body[data-page="auth-login"] .auth-brand-list li {
  color: rgba(255, 255, 255, 0.66);
}

/* 로그인: PC — 풀 히어로 표시, 모바일 축약형 숨김 */
body[data-page="auth-login"] .auth-login-hero--compact {
  display: none;
}

/* 시네마틱 폼 카드 (로그인·비번찾기·회원가입 공통 베이스) */
body[data-page="auth-login"] .auth-login-card,
body[data-page="auth-forgot"] .auth-forgot-card,
body[data-page="auth-signup"] .auth-signup-form,
body[data-page="auth-signup"] .auth-signup-success {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(80, 120, 255, 0.06) 0%, rgba(14, 18, 26, 0.94) 38%),
    rgba(14, 18, 26, 0.92);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

body[data-page="auth-login"] .auth-login-card::before,
body[data-page="auth-forgot"] .auth-forgot-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ea580c 0%, #f2c14e 45%, rgba(80, 120, 255, 0.7) 100%);
}

/* 회원가입 폼 상단 라인 — PC 우측 컬럼 전용 (모바일에서 히어로와 겹침 방지) */
@media (min-width: 901px) {
  body[data-page="auth-signup"] .auth-signup-form::before,
  body[data-page="auth-signup"] .auth-signup-success::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ea580c 0%, #f2c14e 45%, rgba(80, 120, 255, 0.7) 100%);
    z-index: 2;
  }
}

body[data-page="auth-login"] .auth-login-card::after,
body[data-page="auth-forgot"] .auth-forgot-card::after,
body[data-page="auth-signup"] .auth-signup-form::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -25%;
  width: 60%;
  height: 50%;
  background: radial-gradient(circle, rgba(80, 120, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* 입력·CTA 공통 톤업 (인증·계정·관리자) */
body[data-page^="auth-"] .auth-input,
body[data-page^="auth-"] .auth-select,
body[data-page^="auth-"] .auth-textarea,
body[data-page^="auth-"] .locale-country-combobox__input,
body[data-page="account-profile"] .auth-input,
body[data-page="account-profile"] .auth-select,
body[data-page="account-profile"] .auth-textarea,
body[data-page="account-profile"] .locale-country-combobox__input {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

body[data-page^="auth-"] .auth-input::placeholder,
body[data-page^="auth-"] .locale-country-combobox__input::placeholder,
body[data-page="account-profile"] .auth-input::placeholder,
body[data-page="account-profile"] .locale-country-combobox__input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

body[data-page^="auth-"] .auth-input:focus,
body[data-page^="auth-"] .auth-select:focus,
body[data-page^="auth-"] .auth-textarea:focus,
body[data-page^="auth-"] .locale-country-combobox__input:focus,
body[data-page="account-profile"] .auth-input:focus,
body[data-page="account-profile"] .auth-select:focus,
body[data-page="account-profile"] .auth-textarea:focus,
body[data-page="account-profile"] .locale-country-combobox__input:focus {
  border-color: rgba(255, 180, 70, 0.55);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14), 0 0 12px rgba(255, 145, 35, 0.08);
}

body[data-page^="auth-"] .auth-btn--primary,
body[data-page="account-profile"] .auth-btn--primary,
body[data-page="admin-dashboard"] .auth-btn--primary {
  background: linear-gradient(135deg, #ea580c 0%, #f59e0b 48%, #f2c14e 100%);
  color: #1a1008;
  box-shadow: 0 6px 22px rgba(255, 145, 35, 0.28);
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s;
}

body[data-page^="auth-"] .auth-btn--primary:hover:not(:disabled),
body[data-page="account-profile"] .auth-btn--primary:hover:not(:disabled),
body[data-page="admin-dashboard"] .auth-btn--primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 8px 28px rgba(255, 145, 35, 0.38);
  transform: translateY(-1px);
}

body[data-page^="auth-"] .auth-card-sub,
body[data-page="account-profile"] .auth-card-sub {
  color: rgba(255, 255, 255, 0.58);
}

/* 가드 카드 공통 (로그인 유도·관리자·프로필) */
.auth-cinematic-guard,
body[data-page="account-profile"] .account-profile-guard,
body[data-page="admin-dashboard"] .admin-dash-guard {
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(255, 180, 70, 0.22);
  background:
    linear-gradient(165deg, rgba(80, 120, 255, 0.06) 0%, rgba(14, 18, 26, 0.94) 40%),
    rgba(14, 18, 26, 0.92);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-cinematic-guard::before,
body[data-page="account-profile"] .account-profile-guard::before,
body[data-page="admin-dashboard"] .admin-dash-guard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ea580c 0%, #f2c14e 45%, rgba(80, 120, 255, 0.7) 100%);
}

.auth-cinematic-guard::after,
body[data-page="account-profile"] .account-profile-guard::after,
body[data-page="admin-dashboard"] .admin-dash-guard::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 145, 35, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.auth-cinematic-guard > *,
body[data-page="account-profile"] .account-profile-guard > *,
body[data-page="admin-dashboard"] .admin-dash-guard > * {
  position: relative;
  z-index: 1;
}

.auth-brand-eyebrow {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-gold, #e89528);
}

.auth-brand-title {
  margin: 0 0 12px;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.auth-brand-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.auth-brand-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-brand-list li {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
  padding-left: 14px;
  position: relative;
}

.auth-brand-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: rgba(242, 193, 78, 0.75);
  font-size: 0.62rem;
  top: 2px;
}

.auth-card {
  padding: 24px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 16, 22, 0.92);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.auth-card-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.auth-card-sub {
  margin: 0 0 18px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.auth-input,
.auth-select,
.auth-textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  box-sizing: border-box;
}

.auth-input:focus,
.auth-select:focus,
.auth-textarea:focus {
  outline: none;
  border-color: rgba(242, 193, 78, 0.45);
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.12);
}

.auth-row-inline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.auth-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent-gold, #e89528);
}

.auth-link {
  font-size: 0.8rem;
  color: rgba(242, 193, 78, 0.9);
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-btn {
  min-height: 46px;
  border-radius: 10px;
  border: none;
  font-size: 0.92rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s;
}

.auth-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.auth-btn--primary {
  background: linear-gradient(135deg, #ea580c 0%, #f2c14e 100%);
  color: #1a1008;
}

.auth-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.auth-btn-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-social-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.auth-social-btn {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.72;
  transition: opacity 0.15s, border-color 0.15s;
}

.auth-social-hint {
  margin: 8px 0 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.42);
}

.auth-field-hint {
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.48);
}

.auth-error {
  margin: 0;
  font-size: 0.78rem;
  color: #fca5a5;
  min-height: 1.1em;
}

.auth-success-panel {
  text-align: center;
  padding: 12px 0 4px;
}

.auth-success-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.auth-success-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.auth-success-desc {
  margin: 0 0 18px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

/* 이미 로그인된 상태 — 계정 확인·전환 패널 */
.auth-session-panel {
  margin-bottom: 8px;
}

.auth-session-panel .auth-btn-row {
  margin-top: 8px;
}

.auth-session-switch-hint {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.auth-dev-hint {
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  border: 1px dashed rgba(242, 193, 78, 0.25);
  background: rgba(242, 193, 78, 0.04);
  font-size: 0.74rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.auth-dev-hint strong {
  color: rgba(242, 193, 78, 0.9);
}

.auth-dev-hint button {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
  cursor: pointer;
  text-align: left;
}

.auth-genre-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.auth-genre-chip {
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.auth-genre-chip.is-active {
  border-color: rgba(242, 193, 78, 0.5);
  background: rgba(234, 88, 12, 0.14);
  color: #fff;
}

.auth-policy-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-role-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.header-role-badge--creator { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }
.header-role-badge--studio { background: rgba(167, 139, 250, 0.15); color: #c4b5fd; }
.header-role-badge--partner { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; }
.header-role-badge--curator { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }
.header-role-badge--admin,
.header-role-badge--super { background: rgba(248, 113, 113, 0.15); color: #fca5a5; }
.header-role-badge--pending { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }

.header-auth-btn--signup {
  margin-right: 4px;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

/* 작품등록·크리에이터신청 — 로그인 유도 배너 */
.workflow-auth-banner {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.workflow-auth-banner p {
  margin: 0 0 10px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.workflow-auth-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 배너 CTA — 폼용 auth-btn(46px)보다 낮고, flex로 텍스트 수직 중앙 */
.workflow-auth-banner__actions .auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 7px 14px;
  line-height: 1.2;
  font-size: 0.8125rem;
  border-radius: 8px;
  text-decoration: none;
}

.workflow-auth-banner--guest {
  border-color: rgba(242, 193, 78, 0.28);
  background: rgba(234, 88, 12, 0.08);
}

.workflow-auth-banner--warn {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
}

.workflow-auth-banner--info {
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.06);
}

/* ── 회원가입 페이지: 2컬럼 랜딩 레이아웃 ── */
body[data-page="auth-signup"] .auth-shell--signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 460px);
  gap: 22px 40px;
  align-items: start;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

body[data-page="auth-signup"] .auth-signup-hero {
  grid-column: 1;
  grid-row: 1;
}

body[data-page="auth-signup"] .auth-signup-benefits {
  grid-column: 1;
  grid-row: 2;
}

body[data-page="auth-signup"] .auth-signup-aside-footer {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body[data-page="auth-signup"] .auth-signup-form,
body[data-page="auth-signup"] .auth-signup-success {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  position: sticky;
  top: 96px;
}

body[data-page="auth-signup"] .auth-signup-success[hidden] {
  display: none !important;
}

/* ── 회원가입 히어로 (공통 시네마틱 클래스와 병행) ── */
body[data-page="auth-signup"] .auth-signup-hero {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 32px 28px 30px;
  border: 1px solid rgba(255, 180, 70, 0.18);
  background:
    linear-gradient(135deg, rgba(234, 88, 12, 0.14) 0%, rgba(80, 120, 255, 0.06) 42%, rgba(255, 255, 255, 0.03) 100%),
    rgba(12, 16, 24, 0.82);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-page="auth-signup"] .auth-signup-hero .auth-brand-desc {
  color: rgba(255, 255, 255, 0.72);
  max-width: 36em;
}

/* ── 가입 혜택 섹션 ── */
.auth-signup-section-title {
  margin: 0 0 14px;
  font-size: 0.96rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.01em;
}

.auth-signup-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.auth-signup-benefit-card {
  position: relative;
  padding: 16px 14px 14px 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.auth-signup-benefit-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 180, 70, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.auth-signup-benefit-icon {
  position: absolute;
  left: 14px;
  top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(242, 193, 78, 0.95);
}

.auth-signup-benefit-card--library .auth-signup-benefit-icon { color: #7dd3fc; border-color: rgba(125, 211, 252, 0.25); background: rgba(56, 189, 248, 0.1); }
.auth-signup-benefit-card--likes .auth-signup-benefit-icon { color: #f9a8d4; border-color: rgba(249, 168, 212, 0.25); background: rgba(236, 72, 153, 0.1); }
.auth-signup-benefit-card--alert .auth-signup-benefit-icon { color: #fcd34d; border-color: rgba(252, 211, 77, 0.25); background: rgba(251, 191, 36, 0.1); }
.auth-signup-benefit-card--submit .auth-signup-benefit-icon { color: #6ee7b7; border-color: rgba(110, 231, 183, 0.25); background: rgba(52, 211, 153, 0.1); }
.auth-signup-benefit-card--creator .auth-signup-benefit-icon { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.25); background: rgba(167, 139, 250, 0.1); }
.auth-signup-benefit-card--for-you .auth-signup-benefit-icon { color: #fdba74; border-color: rgba(253, 186, 116, 0.25); background: rgba(234, 88, 12, 0.12); }

.auth-signup-benefit-title {
  margin: 0 0 5px;
  font-size: 0.86rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.94);
}

.auth-signup-benefit-desc {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.52;
  color: rgba(255, 255, 255, 0.66);
}

/* ── 크리에이터 CTA 카드 ── */
.auth-signup-creator-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 180, 70, 0.38);
  background:
    linear-gradient(125deg, rgba(234, 88, 12, 0.16) 0%, rgba(80, 120, 255, 0.06) 55%, rgba(14, 18, 26, 0.9) 100%);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-signup-creator-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 120%;
  background: linear-gradient(135deg, rgba(255, 190, 80, 0.14) 0%, transparent 60%);
  pointer-events: none;
  transform: rotate(-8deg);
}

.auth-signup-creator-title {
  position: relative;
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
}

.auth-signup-creator-desc {
  position: relative;
  margin: 0 0 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.auth-signup-creator-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 180, 70, 0.45);
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.22) 0%, rgba(242, 193, 78, 0.12) 100%);
  font-size: 0.82rem;
  font-weight: 800;
  color: #fcd34d;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.auth-signup-creator-link:hover {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.32) 0%, rgba(242, 193, 78, 0.2) 100%);
  border-color: rgba(255, 200, 90, 0.6);
  box-shadow: 0 4px 18px rgba(255, 145, 35, 0.2);
  transform: translateY(-1px);
  text-decoration: none;
}

.auth-signup-creator-link-arrow {
  font-size: 0.95rem;
  line-height: 1;
}

/* 신뢰/정책 — 크리에이터 카드 바로 아래 자연스럽게 */
.auth-signup-trust {
  margin: 0;
  padding: 10px 14px 0;
  font-size: 0.73rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-signup-aside-footer .auth-signup-trust {
  padding-top: 12px;
  margin-top: 2px;
}

/* 간편가입 버튼 — outline + 브랜드 이니셜 (회원가입 전용) */
body[data-page="auth-signup"] .auth-social-grid--signup {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

body[data-page="auth-signup"] .auth-social-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 72px;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: not-allowed;
  opacity: 1;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

body[data-page="auth-signup"] .auth-social-btn-label {
  line-height: 1.2;
}

/* PC: 비밀번호·국가 2열 / 약관 2열 */
body[data-page="auth-signup"] .auth-form-row--2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

body[data-page="auth-signup"] #signupForm {
  gap: 14px;
}

body[data-page="auth-signup"] #signupForm .auth-field {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body[data-page="auth-signup"] #signupForm .auth-field-hint {
  margin: 0 0 4px;
}

body[data-page="auth-signup"] #signupForm .auth-policy-list--signup {
  margin: 0;
}

@media (min-width: 901px) {
  body[data-page="auth-signup"] .auth-form-row--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body[data-page="auth-signup"] .auth-policy-list--signup {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
  }

  /* 긴 선택 약관 — 2열 폭에서 줄바꿈 깨짐 방지 */
  body[data-page="auth-signup"] .auth-policy-list--signup .auth-check--full {
    grid-column: 1 / -1;
  }

  body[data-page="auth-signup"] .auth-policy-list--signup .auth-check {
    align-items: flex-start;
    line-height: 1.45;
  }
}

/* 폼 카드 내부 콘텐츠 — 장식 레이어 위로 */
body[data-page="auth-signup"] .auth-signup-form > * {
  position: relative;
  z-index: 1;
}

body[data-page="auth-signup"] .auth-field-hint {
  color: rgba(255, 255, 255, 0.52);
}

.auth-social-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.auth-social-btn-icon--google {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-social-btn-icon--kakao {
  background: rgba(254, 229, 0, 0.12);
  color: rgba(254, 229, 0, 0.85);
  border: 1px solid rgba(254, 229, 0, 0.2);
}

.auth-social-btn-icon--naver {
  background: rgba(3, 199, 90, 0.12);
  color: rgba(110, 231, 183, 0.9);
  border: 1px solid rgba(3, 199, 90, 0.22);
}

body[data-page="auth-signup"] .auth-social-hint {
  color: rgba(255, 255, 255, 0.48);
}

@media (max-width: 900px) {
  body[data-page^="auth-"] .portal-layout-container.auth-page {
    margin-top: 88px;
    padding: 0 16px 48px;
  }

  /* 로그인·비밀번호 찾기: 모바일 헤더(로고+검색 2행) 높이 보정 */
  body[data-page="auth-login"] .portal-layout-container.auth-page,
  body[data-page="auth-forgot"] .portal-layout-container.auth-page {
    margin-top: 128px;
    margin-bottom: 8px;
    padding: 0 16px 40px;
  }

  body[data-page="auth-login"] .portal-layout-container.auth-page::after,
  body[data-page="auth-forgot"] .portal-layout-container.auth-page::after {
    display: none;
  }

  /* 로그인·비밀번호 찾기: 모바일 flex 1열 + 폼 라인 겹침 방지 */
  body[data-page="auth-login"] .auth-shell,
  body[data-page="auth-forgot"] .auth-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* 로그인: 모바일 축약 히어로 (풀 히어로 숨김 → 폼 우선) */
  body[data-page="auth-login"] .auth-shell {
    gap: 10px;
  }

  body[data-page="auth-login"] .auth-login-hero--full {
    display: none !important;
  }

  body[data-page="auth-login"] .auth-login-hero--compact {
    display: block;
    order: 1;
    z-index: 2;
    padding: 14px 16px;
    min-height: 0;
    border: 1px solid rgba(255, 180, 70, 0.16);
    background: rgba(12, 16, 24, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  }

  .auth-login-compact-eyebrow {
    margin: 0 0 6px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: rgba(252, 211, 77, 0.9);
  }

  .auth-login-compact-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
  }

  .auth-login-compact-desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.68);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 축약 히어로에 제목이 있으므로 폼 카드 상단 제목·부제 숨김 */
  body[data-page="auth-login"] .auth-login-card .auth-card-title,
  body[data-page="auth-login"] .auth-login-card .auth-card-sub {
    display: none;
  }

  body[data-page="auth-login"] .auth-login-card {
    order: 2;
    z-index: 1;
    padding-top: 18px;
  }

  body[data-page="auth-forgot"] .auth-forgot-hero {
    order: 1;
    z-index: 2;
  }

  body[data-page="auth-forgot"] .auth-forgot-card {
    order: 2;
    z-index: 1;
  }

  body[data-page="auth-login"] .auth-login-card::before,
  body[data-page="auth-forgot"] .auth-forgot-card::before {
    display: none !important;
    content: none !important;
  }

  body[data-page="auth-login"] .auth-cinematic-glow,
  body[data-page="auth-login"] .auth-cinematic-grain,
  body[data-page="auth-login"] .auth-cinematic-watermark,
  body[data-page="auth-forgot"] .auth-cinematic-glow,
  body[data-page="auth-forgot"] .auth-cinematic-grain,
  body[data-page="auth-forgot"] .auth-cinematic-watermark {
    display: none;
  }

  body[data-page="auth-forgot"] .auth-forgot-hero {
    background: rgba(12, 16, 24, 0.94);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  }

  body[data-page="auth-login"] .auth-login-card,
  body[data-page="auth-forgot"] .auth-forgot-card {
    background: rgba(14, 18, 26, 0.96) !important;
    background-image: none !important;
  }

  /* 회원가입: 모바일 헤더(로고+검색 2행) 높이 보정 */
  body[data-page="auth-signup"] .portal-layout-container.auth-page {
    margin-top: 128px;
    margin-bottom: 8px;
    padding: 0 16px 40px;
  }

  body[data-page="auth-signup"] .portal-layout-container.auth-page::after {
    display: none;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .auth-brand-panel {
    padding: 20px 18px;
  }

  /* 회원가입 모바일: grid 겹침 방지 → flex 1열 (폼 ::before 라인이 히어로에 겹치는 버그 해결) */
  body[data-page="auth-signup"] .auth-shell--signup {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
  }

  body[data-page="auth-signup"] .auth-shell--signup > * {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100%;
  }

  body[data-page="auth-signup"] .auth-signup-hero,
  body[data-page="auth-signup"] .auth-signup-form,
  body[data-page="auth-signup"] .auth-signup-benefits,
  body[data-page="auth-signup"] .auth-signup-aside-footer,
  body[data-page="auth-signup"] .auth-signup-success {
    position: static;
    top: auto;
  }

  body[data-page="auth-signup"] .auth-signup-hero {
    order: 1;
    min-height: 0;
    z-index: 2;
  }

  body[data-page="auth-signup"] .auth-signup-form {
    order: 2;
    z-index: 1;
    position: relative !important;
    top: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* 모바일: 폼 상단 그라데이션 라인 완전 제거 (히어로 뒤 비침 방지) */
  body[data-page="auth-signup"] .auth-signup-form::before,
  body[data-page="auth-signup"] .auth-signup-success::before {
    display: none !important;
    content: none !important;
  }

  body[data-page="auth-signup"] .auth-signup-success { order: 2; }
  body[data-page="auth-signup"] .auth-signup-benefits { order: 3; }
  body[data-page="auth-signup"] .auth-signup-aside-footer { order: 4; }

  /* 모바일 히어로 배지 4개 — 한 줄 유지 */
  body[data-page="auth-signup"] .auth-signup-hero-tags {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
  }

  body[data-page="auth-signup"] .auth-signup-hero-tag {
    justify-content: center;
    min-width: 0;
    padding: 5px 4px;
    font-size: 0.62rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  body[data-page="auth-signup"] .auth-signup-hero-tag svg {
    width: 10px;
    height: 10px;
  }

  /* 모바일: 장식 레이어 제거 — 우측 반쪽 침범·대각 그라데이션 버그 수정 */
  body[data-page="auth-signup"] .auth-signup-hero-glow,
  body[data-page="auth-signup"] .auth-signup-hero-grain,
  body[data-page="auth-signup"] .auth-signup-hero-clap {
    display: none;
  }

  body[data-page="auth-signup"] .auth-signup-hero {
    background: rgba(12, 16, 24, 0.94);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  }

  body[data-page="auth-signup"] .auth-signup-form::after,
  body[data-page="auth-login"] .auth-login-card::after,
  body[data-page="auth-forgot"] .auth-forgot-card::after {
    display: none;
  }

  body[data-page="auth-signup"] .auth-signup-form {
    background: rgba(14, 18, 26, 0.96) !important;
    background-image: none !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    isolation: isolate;
  }

  body[data-page="auth-signup"] .auth-signup-hero {
    isolation: isolate;
  }

  .auth-signup-benefits-grid {
    grid-template-columns: 1fr;
  }
}
