:root {
  --bg: #090514;
  --panel: rgba(22, 13, 43, .84);
  --panel-strong: #160d2b;
  --line: rgba(255,255,255,.11);
  --text: #f8f6ff;
  --muted: #bcb3d1;
  --primary: #8b5cf6;
  --primary-2: #5b21b6;
  --accent: #d8b4fe;
  --danger: #fb7185;
  --success: #34d399;
  --shadow: 0 30px 80px rgba(0,0,0,.42);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(124,58,237,.30), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(168,85,247,.20), transparent 30%),
    linear-gradient(145deg, #090514 0%, #110824 54%, #07040e 100%);
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
a { color: inherit; }
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
}
.auth-visual {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 86px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: 8% 5% auto auto;
  width: min(42vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(139,92,246,.04), rgba(216,180,254,.38), rgba(91,33,182,.08), rgba(139,92,246,.04));
  filter: blur(4px);
  z-index: -2;
}
.auth-visual::after {
  content: "";
  position: absolute;
  width: 48%;
  aspect-ratio: 1;
  right: 12%;
  top: 27%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30% 70% 66% 34% / 30% 35% 65% 70%;
  transform: rotate(18deg);
  box-shadow: inset 0 0 80px rgba(139,92,246,.12), 0 0 100px rgba(139,92,246,.12);
  z-index: -1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--primary-2));
  box-shadow: 0 14px 30px rgba(124,58,237,.35);
}
.brand-mark svg { width: 25px; height: 25px; }
.hero-copy { max-width: 640px; margin: auto 0; }
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(216,180,254,.25);
  border-radius: 999px;
  background: rgba(139,92,246,.10);
  color: #e9d5ff;
  font-size: 13px;
  font-weight: 800;
}
.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.hero-copy h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #f5f3ff, #d8b4fe 42%, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-copy p { max-width: 560px; margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.8; }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-item { padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.045); color: #ded8ea; font-size: 13px; }
.auth-panel-wrap {
  padding: clamp(18px, 4vw, 54px);
  display: grid;
  place-items: center;
  background: rgba(5,3,10,.38);
  border-left: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(22px);
}
.auth-card {
  width: min(100%, 520px);
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(30,18,57,.96), rgba(12,7,23,.94));
  box-shadow: var(--shadow);
}
.auth-card h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.035em; }
.auth-card .lead { color: var(--muted); line-height: 1.65; margin: 12px 0 28px; }
.field { margin-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 800; color: #e7e0f3; }
.input-wrap { position: relative; }
input[type="email"], input[type="text"], input[type="password"] {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  padding: 0 16px;
  outline: none;
  color: var(--text);
  background: rgba(4,2,9,.58);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
input:focus { border-color: rgba(167,139,250,.85); box-shadow: 0 0 0 4px rgba(139,92,246,.13); }
input::placeholder { color: #776e89; }
.toggle-password { position: absolute; right: 8px; top: 8px; height: 38px; min-width: 48px; border: 0; border-radius: 11px; color: #d8d0e8; background: rgba(255,255,255,.07); cursor: pointer; }
.password-rules { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.rule { padding: 7px 5px; border-radius: 9px; text-align: center; font-size: 11px; color: #8f859f; background: rgba(255,255,255,.045); }
.rule.ok { color: #d1fae5; background: rgba(16,185,129,.15); }
.check-row { margin-top: 18px; display: flex; align-items: flex-start; gap: 10px; color: var(--muted); line-height: 1.5; font-size: 13px; }
.check-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--primary); }
.primary-button {
  width: 100%;
  height: 56px;
  margin-top: 24px;
  border: 0;
  border-radius: 16px;
  color: white;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #9f7aea, #6d28d9 55%, #4c1d95);
  box-shadow: 0 16px 34px rgba(109,40,217,.30);
  transition: transform .2s ease, filter .2s ease;
}
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.primary-button:disabled { cursor: wait; opacity: .6; transform: none; }
.form-message { min-height: 22px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.form-message.error { color: #fecdd3; }
.form-message.success { color: #a7f3d0; }
.switch-link { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.switch-link a { color: #ddd6fe; font-weight: 900; text-underline-offset: 4px; }
.security-note { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin-top: 24px; padding: 14px; border-radius: 15px; border: 1px solid rgba(52,211,153,.16); background: rgba(16,185,129,.07); color: #c9f7e6; font-size: 12px; line-height: 1.55; }
.security-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(52,211,153,.14); }
.footer-copy { color: #7e748e; font-size: 12px; }
.hidden { display: none !important; }
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 330px; padding: 28px; }
  .hero-copy { margin: 56px 0 22px; }
  .hero-copy h1 { font-size: clamp(38px, 10vw, 62px); }
  .auth-panel-wrap { border-left: 0; border-top: 1px solid rgba(255,255,255,.06); padding: 18px; }
}
@media (max-width: 520px) {
  .auth-visual { min-height: 240px; }
  .hero-copy p, .trust-list, .footer-copy { display: none; }
  .hero-copy { margin: 40px 0 0; }
  .hero-copy h1 { margin-bottom: 0; font-size: 36px; }
  .auth-card { border-radius: 24px; padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .password-rules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 330px) {
  .auth-visual { padding: 20px 16px; min-height: 205px; }
  .brand { font-size: 13px; }
  .brand-mark { width: 36px; height: 36px; }
  .auth-panel-wrap { padding: 10px; }
  .auth-card { padding: 22px 14px; border-radius: 20px; }
  .auth-card h2 { font-size: 28px; }
}
