/* sellbright — auth (social only: Google + Kakao) */
:root { --kakao: #FEE500; --kakao-ink: #191600; }

.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); }

/* ---------- LEFT — brand panel (dark) ---------- */
.auth-left { position: relative; background: var(--ink); color: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 4vw, 56px); }
.auth-left .aura { position: absolute; width: 620px; height: 620px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(37,99,235,0.4), transparent 60%); filter: blur(30px);
  top: 38%; left: 30%; transform: translate(-50%,-50%); animation: auraFloat 14s var(--ease-in-out) infinite; }
.auth-left .aura.v { background: radial-gradient(circle, rgba(124,58,237,0.32), transparent 60%); top: 70%; left: 75%; width: 460px; height: 460px; animation-duration: 18s; }
@keyframes auraFloat { 50% { transform: translate(-50%,-50%) translate(40px,-30px); } }
.auth-left .dots { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: radial-gradient(80% 70% at 40% 40%, #000 30%, transparent 80%); }

.auth-left .brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.auth-left .brand .dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, #60a5fa, #a78bfa); }

.auth-left .mid { position: relative; z-index: 2; }
.auth-left .eb { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.auth-left h2 { margin: 0 0 30px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; font-size: clamp(28px, 3.2vw, 44px); }
.auth-left h2 .g { background: linear-gradient(100deg, #60a5fa, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* preview card */
.preview { position: relative; z-index: 2; width: min(360px, 100%); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; background: rgba(255,255,255,0.04); backdrop-filter: blur(6px); padding: 18px; }
.preview .row { display: flex; align-items: center; gap: 12px; }
.preview .img { width: 46px; height: 46px; border-radius: 10px; flex: none;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 7px, rgba(255,255,255,0.03) 7px 14px); border: 1px solid rgba(255,255,255,0.12); }
.preview .before { font-size: 13px; color: rgba(255,255,255,0.4); text-decoration: line-through; }
.preview .arrow { color: rgba(255,255,255,0.3); text-align: center; font-size: 18px; margin: 10px 0; }
.preview .after { display: flex; flex-direction: column; gap: 2px; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; line-height: 1.2; }
.preview .after .g { background: linear-gradient(100deg, #60a5fa, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.preview .scores { display: flex; gap: 14px; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.55); }
.preview .scores b { color: #60a5fa; } .preview .scores .c b { color: #4ade80; }

.auth-left .foot { position: relative; z-index: 2; font-size: 12.5px; color: rgba(255,255,255,0.4); }

/* ---------- RIGHT — auth actions ---------- */
.auth-right { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 56px); position: relative; }
.auth-right .topnav { display: flex; justify-content: flex-end; }
.auth-right .back { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 14px; font-weight: 600;
  color: var(--ink-soft); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); transition: all .2s; }
.auth-right .back:hover { background: var(--bg-soft); color: var(--ink); }
.auth-right .back svg { width: 15px; height: 15px; }
.auth-right .back { white-space: nowrap; }

.auth-box { margin: auto; width: min(400px, 100%); }
.auth-box .eyebrow-mono { margin-bottom: 14px; }
.auth-box h1 { margin: 0 0 8px; font-weight: 800; letter-spacing: -0.03em; font-size: clamp(26px, 3vw, 36px); }
.auth-box .sub { margin: 0 0 26px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* segmented toggle */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px; margin-bottom: 26px; position: relative; }
.seg .thumb { position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px);
  background: #fff; border-radius: 9px; box-shadow: 0 2px 8px -2px rgba(2,6,23,0.18); border: 1px solid var(--line);
  transition: transform .32s var(--ease-out); }
.seg.signup .thumb { transform: translateX(100%); }
.seg button { position: relative; z-index: 2; border: 0; background: transparent; cursor: pointer; font-family: var(--font);
  font-weight: 700; font-size: 14.5px; color: var(--ink-faint); padding: 9px 0; border-radius: 9px; transition: color .25s; }
.seg button.on { color: var(--ink); }

/* social buttons */
.socials { display: flex; flex-direction: column; gap: 12px; }
.sbtn { display: flex; align-items: center; justify-content: center; gap: 11px; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 15.5px; border-radius: 13px; padding: 15px 18px; position: relative;
  transition: transform .15s var(--ease-out), box-shadow .2s, filter .2s; border: 1px solid transparent; }
.sbtn:hover { transform: translateY(-1px); }
.sbtn:active { transform: translateY(0); }
.sbtn .ic { width: 20px; height: 20px; flex: none; display: grid; place-items: center; }
.sbtn .lbl { transition: opacity .2s; white-space: nowrap; }
.sbtn.google { background: #fff; color: #1f1f1f; border-color: #dadce0; box-shadow: 0 1px 2px rgba(2,6,23,0.06); }
.sbtn.google:hover { box-shadow: 0 6px 18px -8px rgba(2,6,23,0.25); }
.sbtn.kakao { background: var(--kakao); color: var(--kakao-ink); }
.sbtn.kakao:hover { filter: brightness(0.97); box-shadow: 0 8px 20px -8px rgba(254,229,0,0.7); }

/* loading + success states */
.sbtn .spin { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 20px; height: 20px;
  border-radius: 50%; border: 2.5px solid rgba(0,0,0,0.18); border-top-color: rgba(0,0,0,0.6); animation: aspin .7s linear infinite; opacity: 0; }
.sbtn.kakao .spin { border-color: rgba(0,0,0,0.18); border-top-color: rgba(0,0,0,0.7); }
@keyframes aspin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.sbtn.loading .ic, .sbtn.loading .lbl { opacity: 0; }
.sbtn.loading .spin { opacity: 1; }
.sbtn.done .ic, .sbtn.done .spin { opacity: 0; }
.sbtn.done .lbl { opacity: 1; }
.sbtn[disabled] { pointer-events: none; }
.sbtn.dimmed { opacity: 0.45; }

.legal { margin-top: 22px; font-size: 12.5px; line-height: 1.7; color: var(--ink-faint); text-align: center; }
.legal a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.trust { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }
.trust .d { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-ghost); }

/* success toast overlay */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: 12px; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 20px 50px -16px rgba(2,6,23,0.5);
  opacity: 0; pointer-events: none; transition: all .4s var(--ease-out); z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .check { width: 20px; height: 20px; border-radius: 50%; background: #22c55e; display: grid; place-items: center; }
.toast .check svg { width: 12px; height: 12px; color: #fff; }

@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { min-height: 100vh; }
}
