:root {
  color-scheme: light;
  --bg: #f5f4ff;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --line: rgba(17, 17, 17, 0.08);
  --ink: #111111;
  --muted: #5f6472;
  --brand: #6c4cff;
  --brand-soft: rgba(108, 76, 255, 0.1);
  --success: #0f9f62;
  --danger: #c73b5f;
  --shadow: 0 32px 80px rgba(19, 20, 38, 0.12);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(108, 76, 255, 0.14), transparent 32%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.12), transparent 28%),
    var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 32px;
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.ambient-one {
  top: -60px;
  left: -20px;
  width: 280px;
  height: 280px;
  background: rgba(108, 76, 255, 0.12);
}

.ambient-two {
  right: -100px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  background: rgba(34, 197, 94, 0.12);
}

.app-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(340px, 0.95fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  min-height: calc(100vh - 64px);
}

.hero-panel,
.auth-panel {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: var(--panel);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 40px;
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(108, 76, 255, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand);
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-panel h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  max-width: 10ch;
}

.hero-panel p {
  margin: 0;
  max-width: 30rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-points {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.hero-points div {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.hero-points strong {
  font-size: 1rem;
}

.hero-points span {
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-panel {
  border-radius: 32px;
  padding: 28px;
  display: flex;
  align-items: center;
}

.stack {
  display: grid;
  gap: 18px;
  width: 100%;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.title {
  margin: 0;
  font-size: 2rem;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.form-card,
.profile-card {
  display: grid;
  gap: 16px;
  border-radius: 28px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  padding: 24px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--ink);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.field input:focus {
  outline: none;
  border-color: rgba(108, 76, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(108, 76, 255, 0.12);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease,
    background-color 140ms ease;
}

.button:disabled {
  cursor: wait;
  opacity: 0.64;
}

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

.button-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 30px rgba(108, 76, 255, 0.22);
}

.button-secondary {
  background: rgba(17, 17, 17, 0.04);
  color: var(--ink);
}

.button-link {
  padding: 0;
  background: none;
  color: var(--brand);
}

.status {
  min-height: 24px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.status-error {
  color: var(--danger);
}

.status-success {
  color: var(--success);
}

.status-neutral {
  color: var(--muted);
}

.footer-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-note a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.profile-grid {
  display: grid;
  gap: 12px;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(17, 17, 17, 0.028);
}

.profile-item span {
  color: var(--muted);
}

.profile-item strong {
  text-align: right;
}

.home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

  .app-frame {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel,
  .auth-panel {
    border-radius: 28px;
  }

  .hero-panel {
    padding: 28px;
  }

  .auth-panel {
    padding: 18px;
  }
}
