:root {
  --ink: #244b35;
  --ink-deep: #183426;
  --muted: #526157;
  --soft: #7d8c78;
  --cream: #f6f0e2;
  --cream-2: #efe6d2;
  --green: #365d46;
  --green-2: #4d6a56;
  --orange: #d8773e;
  --orange-deep: #c86329;
  --card: rgba(255, 255, 255, 0.82);
  --card-strong: rgba(255, 255, 255, 0.94);
  --border: rgba(61, 89, 67, 0.12);
  --shadow: 0 24px 70px rgba(30, 48, 34, 0.12);
  --shadow-strong: 0 30px 90px rgba(16, 28, 18, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f7f0e4;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0% 0%, rgba(216, 119, 62, 0.14), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(77, 106, 86, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf6ea 0%, #f6f0e2 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -18%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.35), transparent 24%),
    radial-gradient(circle at 80% 28%, rgba(255, 255, 255, 0.16), transparent 20%);
  opacity: 0.9;
}

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

button,
input {
  font: inherit;
}

img {
  max-width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-deep);
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

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

.button-primary {
  background: var(--orange);
  color: #fff7f1;
  box-shadow: 0 14px 28px rgba(216, 119, 62, 0.26);
}

.button-primary:hover {
  background: var(--orange-deep);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(47, 71, 51, 0.14);
  color: var(--ink-deep);
  backdrop-filter: blur(10px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.7);
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
}

.auth-page,
.dashboard-page {
  position: relative;
}

.auth-page .auth-shell,
.dashboard-page .dashboard-shell {
  width: min(1180px, calc(100% - 24px));
  margin: 24px auto 32px;
  position: relative;
  z-index: 1;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.55);
}

.auth-copy {
  position: relative;
  padding: clamp(30px, 4vw, 56px);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(135deg, #fcf8ef 0%, #f7f0df 56%, #efe2c8 100%);
}

.auth-copy::after {
  content: "";
  position: absolute;
  inset: auto -8% -16% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 68%);
  pointer-events: none;
  filter: blur(8px);
}

.auth-copy .brand {
  margin-bottom: 28px;
}

.auth-copy h1,
.dashboard-hero h1 {
  margin: 8px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink-deep);
}

.auth-copy h1 {
  font-size: clamp(2.6rem, 4.9vw, 5rem);
  max-width: 700px;
}

.lead {
  margin: 0;
  max-width: 680px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(39, 67, 47, 0.1);
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(39, 67, 47, 0.08);
}

.feature-bullet {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #f7f2ea;
  font-size: 0.82rem;
  font-weight: 700;
}

.feature-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-deep);
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-footnote {
  margin: 18px 0 0;
  color: rgba(36, 75, 53, 0.58);
  font-size: 0.92rem;
  line-height: 1.6;
}

.auth-form-panel {
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.9);
}

.auth-card {
  display: grid;
  gap: 18px;
  padding: clamp(6px, 1vw, 10px);
}

.auth-card h2,
.dashboard-card h2 {
  margin: 4px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--ink-deep);
}

.auth-card h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.auth-card .lead {
  max-width: 520px;
}

.form-message {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  line-height: 1.6;
}

.form-message-error {
  background: rgba(193, 89, 35, 0.12);
  border-color: rgba(193, 89, 35, 0.18);
  color: #8b3a15;
}

.form-message-success {
  background: rgba(54, 93, 70, 0.12);
  border-color: rgba(54, 93, 70, 0.18);
  color: #21412f;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 6px;
}

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

.field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-deep);
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(49, 75, 54, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-deep);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.field input::placeholder {
  color: rgba(36, 75, 53, 0.42);
}

.field input:focus {
  border-color: rgba(223, 119, 62, 0.54);
  box-shadow: 0 0 0 4px rgba(223, 119, 62, 0.16);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.form-actions .button {
  flex: 1 1 180px;
}

.dashboard-hero-actions {
  margin-top: 24px;
}

.helper {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.text-link {
  color: var(--orange-deep);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 6px;
}

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

.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  margin-top: 18px;
  padding: clamp(26px, 4vw, 48px);
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 255, 255, 0.68), transparent 28%),
    linear-gradient(135deg, #fbf6ea 0%, #f7efdd 56%, #efe3c9 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.34), transparent 16%),
    radial-gradient(circle at 72% 78%, rgba(54, 93, 70, 0.07), transparent 18%);
}

.dashboard-copy {
  position: relative;
  z-index: 1;
}

.dashboard-hero h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  max-width: 760px;
}

.dashboard-status {
  position: relative;
  z-index: 1;
  align-self: stretch;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(37, 67, 48, 0.1);
  box-shadow: 0 18px 50px rgba(37, 67, 48, 0.08);
}

.status-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(37, 67, 48, 0.08);
}

.status-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(54, 93, 70, 0.12);
  flex: 0 0 auto;
}

.status-meta {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.dashboard-card {
  grid-column: span 4;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(37, 67, 48, 0.08);
  min-height: 220px;
}

.dashboard-card h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
}

.dashboard-card p {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.dashboard-card-wide {
  grid-column: span 12;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 243, 230, 0.98));
}

.dashboard-card-wide .helper {
  margin-top: 14px;
}

.dashboard-footer {
  padding: 6px 8px 0;
  color: rgba(48, 66, 57, 0.72);
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .auth-shell,
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .auth-page .auth-shell,
  .dashboard-page .dashboard-shell {
    width: min(100% - 16px, 100%);
    margin-top: 12px;
  }

  .auth-shell,
  .dashboard-hero {
    border-radius: 24px;
  }

  .auth-copy,
  .auth-form-panel,
  .dashboard-hero,
  .dashboard-status,
  .dashboard-card {
    padding: 22px;
  }

  .auth-copy h1,
  .dashboard-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  .dashboard-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .button {
    flex: 1 1 160px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    grid-column: auto;
  }

  .form-actions .button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
