/* editorial — auth screens shared shell
   (extends editorial-tokens.css; matches editorial-login.html)
   v1.0 · 2026-05-24 */

html { background: var(--press-black); }
body {
  background: var(--press-black);
  color: var(--d-text-1);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========= BACKGROUND ========= */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(155deg, #111111 0%, #1F1E1C 50%, #212122 100%);
}
.bg-stage svg.blob-field {
  position: absolute;
  inset: -10% -10%;
  width: 120%;
  height: 120%;
}
.blob { transform-origin: center; transform-box: fill-box; }
.blob--a { animation: drift-a 22s ease-in-out infinite alternate; }
.blob--b { animation: drift-b 28s ease-in-out infinite alternate; }
.blob--c { animation: drift-c 19s ease-in-out infinite alternate; }
@keyframes drift-a {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(-3%, 4%) scale(1.08) rotate(-6deg); }
  100% { transform: translate(2%, -2%) scale(0.96) rotate(4deg); }
}
@keyframes drift-b {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(4%, -3%) scale(1.05) rotate(8deg); }
  100% { transform: translate(-2%, 3%) scale(0.94) rotate(-5deg); }
}
@keyframes drift-c {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate(-4%, -3%) scale(0.94) rotate(-7deg); }
  100% { transform: translate(3%, 4%) scale(1.1) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
}
.bg-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.969  0 0 0 0 0.941  0 0 0 0 0.875  0 0 0 0.15 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 400px 400px;
  mix-blend-mode: screen;
  opacity: 1;
}

/* ========= LAYOUT ========= */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topnav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4.8rem;
  flex-shrink: 0;
}
.topnav .left { display: flex; align-items: center; gap: 4rem; }
.topnav .mark {
  font-family: var(--f-script);
  font-size: 2.6rem;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}
.topnav .links { display: flex; gap: 2.4rem; }
.topnav .links a {
  color: var(--d-text-2);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  transition: color var(--d-fast) var(--ease-out);
}
.topnav .links a:hover { color: var(--white); }
.topnav .right a {
  color: var(--d-text-2);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
}
.topnav .right a.is-active { color: var(--white); }
.topnav .right a:hover { color: var(--white); }

.center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4.8rem 2.4rem 6.4rem;
}

/* card-less stack (matches login) */
.auth-card {
  width: 100%;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.4rem;
}
.auth-signup .center {
  padding-top: 2.4rem;
  padding-bottom: 4.8rem;
}
.auth-signup .auth-card {
  gap: 1.4rem;
}
.auth-mark {
  font-family: var(--f-script);
  font-size: 5.2rem;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
  margin-bottom: 0.4rem;
}
.auth-signup .auth-mark {
  font-size: 4.6rem;
  margin-bottom: 0;
}

/* page title block under mark (signup / reset / verify) */
.auth-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: -0.8rem;
  margin-bottom: -0.4rem;
}
.auth-head h1 {
  font-family: var(--f-body);
  font-size: 1.7rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
}
.auth-head p {
  font-size: 1.35rem;
  color: var(--d-text-2);
  margin: 0;
  line-height: 1.55;
}
.auth-signup .auth-head {
  gap: 0.4rem;
  margin-top: -0.6rem;
  margin-bottom: -0.2rem;
}

/* ========= SOCIAL BUTTONS (re-used from login) ========= */
.socials { display: flex; flex-direction: column; gap: 0.8rem; }
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  height: 44px;
  padding: 0 1.6rem;
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-weight: 650;
  font-size: 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  transition: background var(--d-fast) var(--ease-out);
}
.btn-social .icon {
  font-size: 18px;
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-social--kakao { background: #FEE500; color: #191919; }
.btn-social--kakao:hover { background: #F0D900; }
.btn-social--naver { background: #03C75A; color: #FFFFFF; }
.btn-social--naver:hover { background: #02B554; }
.btn-social--naver .icon-n {
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 16px;
  /* removed italic per brand cleanup */
  letter-spacing: -0.05em;
}
.btn-social--google { background: #FFFFFF; color: #1F1F1F; }
.btn-social--google:hover { background: #F2F1EE; }

/* divider */
.divider-text {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--d-text-3);
  font-size: 1.2rem;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--d-border);
}

/* ========= FORM ========= */
.form-d { display: flex; flex-direction: column; gap: 0.8rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-label {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--d-text-2);
  letter-spacing: -0.005em;
  padding-left: 0.2rem;
}
.input-d {
  font-family: var(--f-body);
  font-size: 1.4rem;
  font-weight: 500;
  height: 44px;
  padding: 0 1.4rem;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-radius: var(--r-sm);
  width: 100%;
  transition: border-color var(--d-fast) var(--ease-out);
}
.input-d::placeholder { color: rgba(255,255,255,0.4); }
.input-d:hover { border-color: rgba(255,255,255,0.24); }
.input-d:focus {
  outline: none;
  border-color: var(--tiger-orange);
  box-shadow: 0 0 0 2px rgba(249,104,21,0.22);
}
.input-d.is-error {
  border-color: #DC2626;
  box-shadow: 0 0 0 2px rgba(220,38,38,0.22);
}
.field-help {
  font-size: 1.15rem;
  color: var(--d-text-3);
  padding-left: 0.2rem;
  line-height: 1.5;
}
.field-help.is-error { color: #FCA5A5; }
.field-help.is-ok { color: #86EFAC; }
.auth-signup .form-d {
  gap: 0.7rem;
}
.auth-signup .field {
  gap: 0.3rem;
}
.auth-signup .field-help {
  line-height: 1.35;
}

/* ========= PRIMARY CTA ========= */
.btn-primary-d {
  height: 44px;
  background: var(--tiger-orange);
  color: var(--press-black);
  border: 0;
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-weight: 650;
  font-size: 1.4rem;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: background var(--d-fast) var(--ease-out);
  width: 100%;
}
.btn-primary-d:hover { background: var(--white); }
.btn-primary-d:disabled {
  background: rgba(255,255,255,0.08);
  color: var(--d-text-3);
  cursor: not-allowed;
}
.ed-demo-auth {
  height: 44px;
  width: 100%;
  border: 1px solid rgba(249,104,21,0.72);
  border-radius: var(--r-sm);
  background: rgba(249,104,21,0.12);
  color: var(--white);
  font-family: var(--f-body);
  font-weight: 650;
  font-size: 1.4rem;
  cursor: pointer;
  margin-top: -1.6rem;
  transition: background var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}
.auth-signup .ed-demo-auth {
  margin-top: -0.8rem;
}
.ed-demo-auth:hover {
  background: rgba(249,104,21,0.22);
  border-color: var(--tiger-orange);
}
.btn-secondary-d {
  height: 44px;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-weight: 650;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease-out);
  width: 100%;
}
.btn-secondary-d:hover { background: rgba(255,255,255,0.12); }

/* ========= CHECKBOX (terms) ========= */
.check-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 1.3rem;
  color: var(--d-text-2);
  line-height: 1.5;
  cursor: pointer;
  padding: 0.2rem 0;
}
.check-row input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: background var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}
.check-row input[type=checkbox]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  transition: transform 80ms var(--ease-out);
  background: var(--tiger-orange);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 86% 0, 38% 64%);
}
.check-row input[type=checkbox]:checked { border-color: var(--tiger-orange); background: rgba(249,104,21,0.12); }
.check-row input[type=checkbox]:checked::before { transform: scale(1); }
.check-row .req { color: var(--tiger-orange); font-weight: 650; margin-right: 0.2rem; }
.check-row a { color: var(--d-text-1); text-decoration: underline; text-decoration-color: var(--d-border-strong); text-underline-offset: 2px; }
.check-row a:hover { text-decoration-color: var(--white); }
.check-row.is-all {
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--white);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--d-border);
  margin-bottom: 0.2rem;
}
.auth-signup .check-row.is-all {
  padding: 0.5rem 0;
}

/* ========= STATUS / SUCCESS / ERROR ICONS ========= */
.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-content: center;
  margin: 0 auto;
  font-size: 28px;
  line-height: 1;
}
.status-icon--ok { background: rgba(22,163,74,0.16); color: #86EFAC; border: 1px solid rgba(22,163,74,0.32); }
.status-icon--err { background: rgba(220,38,38,0.16); color: #FCA5A5; border: 1px solid rgba(220,38,38,0.32); }
.status-icon--mail { background: rgba(249,104,21,0.12); color: #FBBF85; border: 1px solid rgba(249,104,21,0.28); }

/* email pill shown in confirmation screens */
.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--d-border);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 1.2rem;
  color: var(--white);
}

/* row of two-up buttons or inline links */
.btn-row {
  display: flex;
  gap: 0.8rem;
}
.btn-row > * { flex: 1; }

/* inline center small links */
.muted-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  color: var(--d-text-3);
}
.muted-row a {
  color: var(--d-text-2);
  text-decoration: none;
  transition: color var(--d-fast) var(--ease-out);
}
.muted-row a:hover { color: var(--white); }
.muted-row .sep { color: var(--d-border-strong); }

/* bottom CTA — "이미 계정이 있나요? 로그인" */
.bottom-cta {
  text-align: center;
  font-size: 1.3rem;
  color: var(--d-text-3);
}
.auth-signup .bottom-cta {
  margin-top: -0.4rem;
}
.bottom-cta a {
  color: var(--d-text-1);
  text-decoration: underline;
  text-decoration-color: var(--d-border-strong);
  text-underline-offset: 3px;
  margin-left: 0.4rem;
  transition: text-decoration-color var(--d-fast) var(--ease-out);
}
.bottom-cta a:hover { text-decoration-color: var(--white); }

/* ========= FOOTER ========= */
.foot {
  flex-shrink: 0;
  padding: 2rem 4.8rem;
  font-size: 1.1rem;
  color: var(--d-text-3);
  text-align: center;
  border-top: 1px solid var(--d-border);
  line-height: 1.6;
}
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--d-text-1); }

/* ========= STATE SWITCHER (designer-only chrome) ========= */
.state-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--d-border);
  border-radius: var(--r-pill);
  padding: 0.3rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.state-switcher::before {
  content: "STATE";
  font-family: var(--f-mono);
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--d-text-3);
  padding: 0 0.8rem 0 0.6rem;
}
.state-switcher button {
  font-family: var(--f-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: transparent;
  color: var(--d-text-2);
  border: 0;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.state-switcher button:hover { color: var(--white); }
.state-switcher button.is-active { background: rgba(255,255,255,0.12); color: var(--white); }

/* state visibility — controlled via [data-state] on body */
[data-state] .state-view { display: none; }
[data-state="1"] .state-view[data-view="1"],
[data-state="2"] .state-view[data-view="2"],
[data-state="3"] .state-view[data-view="3"] { display: flex; }

/* ========= RESPONSIVE ========= */
@media (max-width: 1199px) {
  .topnav { padding: 0 3.2rem; }
  .center { padding: 3.2rem 2.4rem 4.8rem; }
}
@media (max-width: 767px) {
  .topnav { padding: 0 1.6rem; height: 56px; }
  .topnav .left { gap: 2rem; }
  .topnav .mark { font-size: 2.2rem; }
  .topnav .links { gap: 1.6rem; }
  .topnav .links a, .topnav .right a { font-size: 1.3rem; }
  .center { padding: 2.4rem 1.6rem 4rem; }
  .auth-card { max-width: 32rem; gap: 2rem; }
  .auth-mark { font-size: 4.4rem; }
  .foot { padding: 1.6rem; font-size: 1.05rem; }
  .state-switcher { top: 8px; right: 8px; transform: scale(0.9); transform-origin: top right; }
}

/* sr-only utility (matches login inline usage) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
