.auth-body {
  min-height: 100vh;
  display: flex;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(212, 175, 122, 0.14), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(212, 175, 122, 0.08), transparent 55%),
    var(--bg);
}

.auth-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: 100%;
  min-height: 100vh;
}

/* ---- brand panel ---- */
.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(32px, 6vw, 96px);
  background: linear-gradient(160deg, #101019 0%, #0a0a10 100%);
  border-right: 1px solid var(--line-soft);
  overflow: hidden;
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 320px at 20% 20%, rgba(212, 175, 122, 0.1), transparent 70%);
  animation: glowPulse 6s ease-in-out infinite;
  pointer-events: none;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

.brand-panel h1 {
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--text);
}

.brand-panel .tagline {
  margin-top: 12px;
  color: var(--gold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 12px;
}

.brand-points {
  margin-top: 48px;
  list-style: none;
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.brand-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
}

.brand-points li::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.brand-foot {
  margin-top: 64px;
  color: #5d584c;
  font-size: 12px;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
}

/* ---- form panel ---- */
.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card h2 { font-size: 30px; font-weight: 600; }
.card .sub { color: var(--muted); margin-top: 8px; font-size: 14px; }

.field { margin-top: 20px; }

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.btn-gold {
  width: 100%;
  margin-top: 26px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #17110a;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(212, 175, 122, 0.25); }
.btn-gold:active { transform: translateY(0); }
.btn-gold:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* google */
.g-wrap { margin-top: 26px; min-height: 44px; }
.g-wrap #g_btn { display: flex; justify-content: center; }
.g-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.g-fallback:hover { border-color: var(--gold); background: var(--gold-soft); }
.g-fallback svg { width: 18px; height: 18px; }
.g-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.divider {
  margin: 24px 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #5d584c;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

.switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; }
.switch button {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  padding: 2px 4px;
}
.switch button:hover { text-decoration: underline; }

/* demo autofill button */
.btn-demo {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-demo svg { width: 16px; height: 16px; }
.btn-demo:hover { background: rgba(212, 175, 122, 0.2); border-color: var(--gold); transform: translateY(-1px); }

.msg { margin-top: 16px; font-size: 14px; min-height: 18px; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }

.hint { margin-top: 14px; font-size: 12px; color: #5d584c; text-align: center; }

/* responsive */
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .brand-panel {
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
    padding: 44px 28px 36px;
    align-items: center;
    text-align: center;
  }
  .brand-mark { margin-bottom: 20px; }
  .brand-panel h1 { font-size: 42px; }
  .brand-points { display: none; }
  .brand-foot { margin-top: 22px; }
  .card { padding: 36px 24px; }
}
