:root {
  --fp-dark: #0b1220;
  --fp-dark-2: #14213a;
  --fp-blue: #2563eb;
  --fp-green: #10b981;
  --fp-text: #0f172a;
  --fp-muted: #64748b;
  --fp-border: #dbe3ef;
}

* {
  box-sizing: border-box;
}

.auth-body {
  min-height: 100vh;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fp-text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, .12), transparent 30%),
    linear-gradient(135deg, #eef4ff 0%, #f8fafc 52%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-shell {
  width: min(1120px, 100%);
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(15, 23, 42, .20);
}

.login-brand {
  position: relative;
  overflow: hidden;
  padding: 58px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 78%, rgba(59, 130, 246, .45), transparent 34%),
    linear-gradient(145deg, #08111f 0%, #10203a 56%, #193b74 100%);
}

.login-brand::before {
  content: "";
  position: absolute;
  left: -90px;
  top: -90px;
  width: 290px;
  height: 290px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .25);
}

.login-brand::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .13);
}

.login-brand-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.login-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 72px;
}

.login-logo,
.setup-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: 1.3rem;
  box-shadow: 0 16px 32px rgba(37, 99, 235, .35);
}

.login-product-title {
  font-weight: 950;
  font-size: 1.45rem;
  letter-spacing: -.04em;
  line-height: 1;
}

.login-product-subtitle {
  color: rgba(255, 255, 255, .62);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  margin-top: 5px;
}

.login-kicker {
  color: rgba(255, 255, 255, .62);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.login-headline {
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 950;
  margin-bottom: 22px;
}

.login-copy {
  max-width: 530px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 34px;
}

.login-benefits {
  margin-top: auto;
  display: grid;
  gap: 16px;
}

.login-benefit {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, .9);
  font-weight: 650;
}

.login-benefit i {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .11);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
}

.login-panel {
  padding: 58px;
  display: flex;
  align-items: center;
}

.login-form-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.login-form-title {
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: -.05em;
  margin-bottom: 8px;
}

.login-form-subtitle {
  color: var(--fp-muted);
  margin-bottom: 30px;
  line-height: 1.55;
}

.auth-form-label {
  font-size: .82rem;
  font-weight: 800;
  color: #334155;
}

.auth-input {
  border-radius: 14px;
  border-color: var(--fp-border);
  padding: 12px 14px;
}

.auth-input:focus {
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .13);
}

.btn-login,
.btn-setup {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 850;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .24);
}

.login-hint {
  margin-top: 22px;
  color: var(--fp-muted);
  font-size: .88rem;
  line-height: 1.55;
}

.setup-card {
  width: min(680px, 100%);
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .18);
  overflow: hidden;
}

.setup-head {
  padding: 34px 38px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(59, 130, 246, .38), transparent 28%),
    linear-gradient(135deg, #08111f, #10203a 60%, #193b74);
}

.setup-logo {
  margin-bottom: 18px;
}

.setup-title {
  margin: 0;
  font-weight: 950;
  letter-spacing: -.045em;
  font-size: 2rem;
}

.setup-subtitle {
  color: rgba(255, 255, 255, .72);
  margin-top: 8px;
  line-height: 1.6;
}

.setup-body {
  padding: 34px 38px 38px;
}

@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-brand {
    padding: 36px;
  }

  .login-logo-row {
    margin-bottom: 34px;
  }

  .login-panel {
    padding: 36px;
  }
}

@media (max-width: 520px) {
  .auth-body {
    padding: 14px;
  }

  .login-brand,
  .login-panel,
  .setup-head,
  .setup-body {
    padding: 26px;
  }

  .login-shell,
  .setup-card {
    border-radius: 22px;
  }
}