:root {
  --brand-purple: #7367f0;
  --brand-pink: #ff6fb5;
  --brand-orange: #ff9f43;
  --bg: #050816;
  --card-bg: rgba(15, 23, 42, 0.96);
  --card-soft: rgba(15, 23, 42, 0.88);
  --border-soft: rgba(148, 163, 184, 0.45);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --input-bg: rgba(15, 23, 42, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top left, var(--brand-orange) 0, var(--brand-purple) 50%, #0f172a 100%);
  color: var(--text-main);
}

/* ===== LAYOUT SHELL (MOBILE FIRST) ===== */

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.page-inner {
  width: 100%;
  max-width: 1120px;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(148, 163, 253, .16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(248, 113, 113, .18), transparent 55%),
    rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.8);
  overflow: hidden;

  /* MOBILE: single column stacked */
  display: flex;
  flex-direction: column;
}

/* ===== HERO / MARKETING (LEFT ON DESKTOP) ===== */

.hero {
  padding: 1.5rem 1.4rem 1.7rem;
  position: relative;
  overflow: hidden;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .7rem .3rem .3rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: .7rem;
  color: var(--text-muted);
}

.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: conic-gradient(from 140deg, var(--brand-purple), var(--brand-pink), var(--brand-orange), var(--brand-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.brand-pill strong {
  color: var(--text-main);
}

.hero h1 {
  margin: 1.1rem 0 .5rem;
  font-size: 1.85rem;
  line-height: 1.25;
}

.hero-gradient {
  background: linear-gradient(120deg, #e0e7ff, #fecaca, #fef3c7);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p.sub {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  font-size: .9rem;
  max-width: 480px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .8rem;
  margin-top: 1rem;
}

.hero-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: .8rem .9rem;
  font-size: .8rem;
}

.hero-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .25rem;
}

.hero-card-title span:first-child {
  font-weight: 500;
}

.hero-card-pill {
  font-size: .7rem;
  padding: .1rem .4rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.hero-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: .78rem;
}

.hero-footer {
  margin-top: 1.2rem;
  font-size: .78rem;
  color: var(--text-muted);
}

/* ===== AUTH PANEL (RIGHT ON DESKTOP) ===== */

.auth-panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.98));
  padding: 1.6rem 1.4rem 1.8rem;
  border-top: 1px solid rgba(30, 64, 175, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .6rem;
}

.auth-tabs {
  display: inline-flex;
  padding: .25rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  margin-bottom: 1rem;
}

.auth-tab {
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-size: .85rem;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
}

.auth-tab.active {
  background: radial-gradient(circle at top left, var(--brand-purple), var(--brand-pink));
  color: #fff;
}

.auth-heading {
  margin-bottom: .25rem;
  font-size: 1.2rem;
}

.auth-sub {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: .83rem;
}

.form {
  display: grid;
  gap: .75rem;
}

.form label {
  font-size: .8rem;
  display: block;
}

.input {
  width: 100%;
  border-radius: .7rem;
  padding: .55rem .7rem;
  background: var(--input-bg);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--text-main);
  font-size: .85rem;
}

.input::placeholder {
  color: #6b7280;
}

.btn-primary {
  border-radius: .85rem;
  border: none;
  padding: .7rem .9rem;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-pink));
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
}

.form-footnote {
  margin-top: .6rem;
  font-size: .75rem;
  color: var(--text-muted);
}

.badge-warning {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border-radius: .7rem;
  background: rgba(248, 250, 252, 0.04);
  border: 1px dashed rgba(248, 113, 113, 0.7);
  color: #fecaca;
  font-size: .75rem;
  margin-bottom: .7rem;
}

/* Utility */

.text-center { text-align: center; }

/* ===== DESKTOP / LARGER SCREENS ===== */

@media (min-width: 900px) {
  .page-shell {
    padding: 2.5rem 1.5rem;
  }

  .page-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  }

  .hero {
    padding: 1.75rem 2rem 2rem;
  }

  .auth-panel {
    padding: 2rem 2.25rem;
    border-top: none;
    border-left: 1px solid rgba(30, 64, 175, 0.5);
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}

@media (min-width: 1200px) {
  .hero h1 {
    font-size: 2.3rem;
  }
}
