/* 로그인·회원가입 — 좌측 다크 패널 + 우측 폼 */
.auth-shell { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side {
  position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: var(--ink-950) var(--poster) center / cover no-repeat;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(11, 12, 14, .55) 0%, rgba(11, 12, 14, .8) 55%, rgba(11, 12, 14, .96) 100%);
}
.auth-side::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.auth-side-inner { height: 100%; display: flex; flex-direction: column; padding: 36px 48px; }
.auth-pitch { margin: auto 0; max-width: 460px; }
.auth-pitch h2 { margin: 12px 0 28px; font-size: clamp(32px, 3.4vw, 46px); font-weight: 820; letter-spacing: -0.04em; line-height: 1.15; }
.auth-pitch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.auth-pitch li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255, 255, 255, .75); line-height: 1.55; }
.auth-pitch li .i { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: rgba(255, 90, 31, .16); color: var(--accent); }
.auth-pitch li b { color: #fff; }
.auth-side-foot { font-size: 12px; color: rgba(255, 255, 255, .45); }

.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-top { display: none; margin-bottom: 26px; }
.auth-card {
  width: min(460px, 100%); padding: 36px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.auth-title { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.auth-sub { margin: 8px 0 24px; color: var(--text-2); font-size: 14.5px; }
.auth-form { display: grid; gap: 16px; }
.auth-form .btn { margin-top: 6px; }
.input-lg { height: 48px; font-size: 15.5px; border-radius: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border: 0; border-radius: 9px; background: transparent; color: var(--text-3); display: grid; place-items: center;
}
.pw-toggle:hover { background: var(--ink-50); color: var(--text); }
.pw-toggle.on { color: var(--accent); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.alert .i { margin-top: 2px; }
.alert-error { background: var(--danger-50); color: var(--danger); border: 1px solid #f6cccc; }
.agree { font-size: 13.5px; color: var(--text-2); }
.agree a { color: var(--accent-700); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.auth-switch { margin-top: 22px; text-align: center; font-size: 14px; color: var(--text-2); }
.auth-switch a { color: var(--accent-700); font-weight: 700; }
.auth-foot { display: flex; gap: 10px; align-items: center; margin-top: 22px; font-size: 13.5px; color: var(--text-3); }
.auth-foot a { display: inline-flex; align-items: center; gap: 4px; }
.auth-foot a:hover { color: var(--text); }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-top { display: block; }
  .auth-main { justify-content: flex-start; padding-top: calc(40px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 480px) {
  .auth-card { padding: 26px 20px; }
  .grid-2 { grid-template-columns: 1fr; }
}
