:root {
  --bg: #070a12;
  --bg-2: #0b1020;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-solid: #0f1626;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2fb;
  --muted: #9aa6bd;
  --orange: #f7931a;
  --orange-soft: #ffc06b;
  --blue: #4d9fff;
  --green: #34d399;
  --red: #f87171;
  --grad: linear-gradient(120deg, #f7931a, #ff7a45 45%, #9a7bff);
  --radius: 14px;
  --radius-lg: 20px;
  --font: "SF Pro Display", Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }

.label {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(247, 147, 26, 0.3);
  border-radius: 999px;
  background: rgba(247, 147, 26, 0.08);
  color: var(--orange-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; }
.brand > span:last-child span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  border: 9px solid #fff; border-right-color: var(--orange);
  display: grid; place-items: center;
  box-shadow: 0 0 24px rgba(247, 147, 26, 0.4);
}
.brand-mark span { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); }

/* ---------------- Left visual panel ---------------- */
.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 48px clamp(40px, 5vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(760px 520px at 18% 12%, rgba(247, 147, 26, 0.18), transparent 60%),
    radial-gradient(680px 560px at 90% 96%, rgba(77, 159, 255, 0.16), transparent 60%),
    var(--bg-2);
  border-right: 1px solid var(--border);
}
.auth-visual::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(154, 123, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.visual-copy { position: relative; max-width: 460px; margin-top: auto; }
.visual-copy .label { margin-bottom: 16px; }
.visual-copy h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; }
.visual-copy h1::after {
  content: ""; display: block; width: 96px; height: 4px; margin-top: 20px;
  border-radius: 999px; background: var(--grad); box-shadow: 0 0 22px rgba(247, 147, 26, 0.5);
}
.visual-copy > p { margin-top: 20px; color: var(--muted); font-size: 17px; }

.visual-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.visual-stats div {
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
}
.visual-stats strong {
  display: block; font-size: 26px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.visual-stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }

/* ---------------- Right form panel ---------------- */
.auth-panel-wrap { display: grid; place-items: center; padding: 48px 24px; }
.auth-panel {
  width: min(440px, 100%);
  padding: 36px clamp(24px, 4vw, 40px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}
.panel-head { margin-bottom: 24px; }
.panel-head .label { margin-bottom: 14px; }
.panel-head h2 { font-size: 28px; font-weight: 800; }
.panel-head > p { margin-top: 8px; color: var(--muted); }

.google-btn {
  width: 100%; min-height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--border-strong); border-radius: 12px; background: rgba(255, 255, 255, 0.04);
  color: var(--text); font: 600 15px/1 var(--font); cursor: pointer; transition: border-color 160ms ease, background 160ms ease;
}
.google-btn:hover { border-color: rgba(247, 147, 26, 0.5); background: rgba(247, 147, 26, 0.06); }
.google-btn span {
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: #4285f4; font-weight: 800; font-size: 14px;
}

.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; color: var(--text); font-weight: 600; font-size: 13px; }
input, select {
  width: 100%; min-height: 48px;
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 14px;
  background: var(--bg); color: var(--text); font: 500 15px/1 var(--font); outline: none;
  transition: border-color 160ms ease;
}
input::placeholder { color: #5f6b80; }
input:focus, select:focus { border-color: var(--blue); }
select { appearance: none; -webkit-appearance: none; cursor: pointer; }

.auth-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.check-row { display: flex; flex-direction: row; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.check-row input { width: auto; min-height: auto; }
.auth-options a { color: var(--blue); font-weight: 600; }

.primary-btn {
  width: 100%; min-height: 52px; margin-top: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; background: var(--grad); color: #160d02;
  font: 800 16px/1 var(--font); cursor: pointer;
  box-shadow: 0 14px 36px rgba(247, 147, 26, 0.32);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(247, 147, 26, 0.46); }

.notice { min-height: 18px; margin: 0; font-size: 13px; font-weight: 600; }
.notice.success { color: var(--green); }
.notice.error { color: var(--red); }

.switch-line { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.switch-line a { color: var(--orange-soft); font-weight: 700; }
.terms-agree { margin-top: 16px; text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.terms-agree a { color: var(--orange-soft); font-weight: 600; }
.back-home { display: block; margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.back-home:hover { color: var(--text); }

/* ---------------- Responsive ---------------- */
@media (max-width: 920px) {
  body { grid-template-columns: 1fr; }
  .auth-visual { gap: 28px; padding: 36px 28px; min-height: auto; }
  .visual-copy { margin-top: 0; }
  .visual-copy h1 { font-size: 28px; }
  .auth-panel-wrap { padding: 36px 20px 56px; }
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
  .visual-stats { grid-template-columns: 1fr; }
  .auth-panel { padding: 28px 22px; }
}
