*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #050608;
  --bg-alt: #111319;
  --panel: rgba(10, 12, 19, 0.92);
  --panel-soft: rgba(17, 19, 25, 0.88);
  --accent: #e0b15a;
  --accent-soft: #f5e3bf;
  --text: #f5f5f5;
  --muted: #a0a4b8;
  --border: #272a36;
  --border-strong: rgba(224, 177, 90, 0.38);
  --danger: #ff7b86;
  --success: #64d3a5;
  --shadow-soft: 0 20px 48px rgba(0, 0, 0, 0.5);
  --shadow-small: 0 12px 28px rgba(0, 0, 0, 0.32);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(224, 177, 90, 0.18), transparent 28%),
    radial-gradient(circle at right top, rgba(64, 92, 142, 0.16), transparent 24%),
    linear-gradient(180deg, #050608 0%, #0b0f17 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 177, 90, 0.18);
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 9, 14, 0.9);
  color: var(--text);
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input::placeholder {
  color: #7f8597;
}

input:focus {
  outline: none;
  border-color: rgba(224, 177, 90, 0.72);
  box-shadow: 0 0 0 3px rgba(224, 177, 90, 0.14);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  width: 100%;
  color: #16120a;
  background: linear-gradient(135deg, #f7d080, #e0b15a);
  box-shadow: 0 14px 34px rgba(224, 177, 90, 0.18);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.auth-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
  background: rgba(7, 8, 12, 0.88);
}

.brand-panel {
  position: relative;
  padding: 36px 36px 34px;
  background:
    radial-gradient(circle at top left, rgba(224, 177, 90, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(12, 14, 21, 0.95), rgba(8, 9, 14, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(224, 177, 90, 0.06) 100%);
  pointer-events: none;
}

.brand-head,
.brand-body,
.brand-foot {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(224, 177, 90, 0.2);
}

.brand-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.brand-subtitle {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.06;
}

.hero-title span {
  color: var(--accent);
}

.hero-copy {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 560px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(224, 177, 90, 0.28);
  background: rgba(224, 177, 90, 0.08);
  color: var(--accent-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.feature-stack {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.feature-card {
  border-radius: 18px;
  padding: 16px 16px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-small);
}

.feature-card h2,
.feature-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.feature-card p,
.feature-card li {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feature-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
  background: var(--accent);
}

.brand-foot {
  margin-top: auto;
}

.brand-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.auth-panel {
  padding: 36px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(180deg, rgba(13, 15, 23, 0.98), rgba(9, 10, 15, 1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(420px, 100%);
  border-radius: 24px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-small);
}

.auth-card.wide {
  width: min(460px, 100%);
}

.card-eyebrow {
  margin: 0 0 8px;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 700;
}

.auth-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
}

.auth-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-stack {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.field-note {
  margin: -4px 0 0;
  color: #7d8292;
  font-size: 12px;
}

.status-message {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  display: none;
  border: 1px solid transparent;
}

.status-message.show {
  display: block;
}

.status-message.error {
  color: #ffd5d9;
  background: rgba(255, 97, 120, 0.12);
  border-color: rgba(255, 97, 120, 0.24);
}

.status-message.success {
  color: #d9ffef;
  background: rgba(67, 182, 129, 0.12);
  border-color: rgba(67, 182, 129, 0.24);
}

.status-message.info {
  color: #f2e7d1;
  background: rgba(224, 177, 90, 0.1);
  border-color: rgba(224, 177, 90, 0.22);
}

.helper-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 13px;
}

.helper-links a {
  color: var(--accent-soft);
}

.helper-links a:hover {
  color: #ffffff;
}

.inline-link {
  color: var(--accent-soft);
}

.inline-link:hover {
  color: #ffffff;
}

.inline-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 980px) {
  .page-shell {
    padding: 18px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 12px;
  }

  .brand-panel,
  .auth-panel {
    padding: 22px;
  }

  .auth-card {
    padding: 22px;
    border-radius: 20px;
  }

  .form-grid.two-up {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 28px;
  }

  .auth-title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
