.auth { min-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--paper); overflow: hidden; }

.hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 56px; overflow: hidden; background: #14141c; color: #fff; isolation: isolate; }
.hero .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.75; z-index: -1; }
.hero .b1 { width: 460px; height: 460px; left: -120px; top: -100px; background: #5b4bff; animation: float-a 14s ease-in-out infinite; }
.hero .b2 { width: 400px; height: 400px; right: -100px; bottom: 60px; background: #ff5fa2; animation: float-b 17s ease-in-out infinite; }
.hero .b3 { width: 320px; height: 320px; left: 30%; bottom: -120px; background: #19c6d7; opacity: 0.55; animation: float-a 20s ease-in-out infinite reverse; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px); background-size: 28px 28px; mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 80%); }

.hero h1 { margin: 0 0 14px; font-size: clamp(34px, 4.2vw, 56px); line-height: 1.12; letter-spacing: -0.04em; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #a79bff, #ff8cc0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; max-width: 420px; color: rgba(255, 255, 255, 0.72); font-size: 17px; }
.hero .copy { position: relative; z-index: 2; }
.demo { position: relative; height: 200px; }
.demo .card { position: absolute; left: 0; top: 16px; width: 280px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.95); color: #17171f; box-shadow: var(--shadow-lg); font-size: 15px; transform: rotate(-2deg); animation: rise 0.9s 0.5s var(--ease) both; }
.demo .card b { display: block; margin-bottom: 4px; font-size: 13px; color: #8a8a98; font-weight: 600; }
.demo svg.scribble { position: absolute; left: 250px; top: 20px; width: 220px; height: 130px; fill: none; stroke: #ff8cc0; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 360; stroke-dashoffset: 360; animation: draw 2.4s 1.1s var(--ease) forwards; }

.dcursor { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }
.dcursor svg { width: 22px; height: 22px; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.dcursor span { position: absolute; left: 16px; top: 18px; padding: 2px 9px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dc1 { animation: roam1 9s ease-in-out infinite; }
.dc2 { animation: roam2 11s ease-in-out infinite; }
@keyframes roam1 { 0%, 100% { transform: translate(230px, 10px); } 30% { transform: translate(380px, 90px); } 60% { transform: translate(300px, 150px); } }
@keyframes roam2 { 0%, 100% { transform: translate(120px, 150px); } 35% { transform: translate(60px, 60px); } 70% { transform: translate(210px, 40px); } }

.panel { display: grid; place-items: center; padding: 32px 24px; }
.panel .box { width: min(400px, 100%); }
.panel h2 { margin: 0 0 4px; font-size: 28px; letter-spacing: -0.03em; }
.panel .sub { margin: 0 0 24px; color: var(--muted); }

.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 24px; border-radius: 14px; background: rgb(var(--ink-rgb) / 0.06); }
.tabs button { position: relative; z-index: 1; height: 40px; font-weight: 600; color: var(--muted); border-radius: 10px; transition: color 0.25s; }
.tabs button[aria-selected='true'] { color: var(--ink); }
.tabs .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform 0.4s var(--spring); }
.tabs[data-active='signup'] .pill { transform: translateX(100%); }

.form-error { min-height: 22px; margin: 2px 0 12px; color: var(--danger); font-size: 14px; font-weight: 500; }
.form-error:not(:empty) { animation: rise 0.3s var(--ease); }
.fields-signup { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease); }
.fields-signup > div { overflow: hidden; }
[data-mode='signup'] .fields-signup { grid-template-rows: 1fr; }
.panel .btn-primary { width: 100%; height: 52px; font-size: 16px; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .hero { padding: 28px 24px 24px; }
  .hero h1 { font-size: 30px; margin-bottom: 8px; }
  .hero p, .demo { display: none; }
  .panel { padding-top: 64px; }
  .hero .copy { margin-top: 18px; }
  .hero { gap: 0; justify-content: flex-start; }
}
.c-pink { background: #ff5fa2; }
.c-cyan { background: #19c6d7; }
.panel { position: relative; }
.panel .theme-corner { position: absolute; top: 16px; right: 16px; }
.inline-ico { width: 17px; height: 17px; vertical-align: -3px; margin-left: 2px; fill: none; stroke: #8a4bff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 초대 링크 ---------- */
.invite-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgb(var(--ink-rgb) / 0.06); animation: rise 0.6s var(--ease) both; }
.invite-banner .ib-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.invite-banner svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.invite-banner b { display: block; font-size: 16px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.invite-banner small { color: var(--ink-2); font-size: 13px; }
.join-card { display: flex; flex-direction: column; gap: 10px; }
.join-card h2 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.join-card .sub { margin: 0 0 12px; color: var(--muted); }
.join-card .btn { width: 100%; height: 52px; }
