:root {
  --navy: #0b2345;
  --green: #0b806b;
  --mint: #d9f4e9;
  --ivory: #f8f4ea;
  --ink: #17314f;
  --line: #d9deda;
  --white: #fffdf8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.site-header {
  align-items: center;
  background: var(--navy);
  color: white;
  display: flex;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 5vw;
}

.brand {
  color: white;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

.session { align-items: center; display: flex; gap: 14px; }
.session form { margin: 0; }
.session button {
  background: transparent;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  color: white;
  cursor: pointer;
  padding: 8px 14px;
}

.page {
  margin: 0 auto;
  max-width: 1120px;
  padding: 72px 24px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  margin: 10px 0 18px;
}

h2 { color: var(--navy); }
.intro { font-size: 1.1rem; max-width: 670px; }

.notice {
  background: var(--mint);
  border: 1px solid #acdcca;
  border-radius: 14px;
  margin: 26px 0;
  padding: 14px 18px;
}

.notice.error {
  background: #fff0e9;
  border-color: #e6ad8f;
}

.workspace-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.workspace-card,
.auth-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 45px rgb(18 42 66 / 7%);
  padding: 24px;
}

.workspace-card a,
.primary {
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-block;
  margin-top: 12px;
  padding: 11px 17px;
  text-decoration: none;
}

.role {
  background: var(--mint);
  border-radius: 999px;
  color: var(--green);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 10px;
}

.section-heading { margin-top: 44px; }

.auth-card {
  margin: 8vh auto;
  max-width: 480px;
  padding: 34px;
}

.auth-card label { display: block; font-weight: 700; margin-bottom: 6px; }
.auth-card input {
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  padding: 11px;
  width: 100%;
}

.auth-card > p {
  color: #52657a;
  line-height: 1.55;
}

.auth-card form {
  margin-top: 26px;
}

.field-group {
  margin-bottom: 18px;
}

.field-error {
  margin-top: 6px;
  color: #a33f36;
  font-size: 0.82rem;
  line-height: 1.4;
}

.auth-card .primary {
  width: 100%;
  min-height: 46px;
  font-weight: 800;
}

.auth-switch {
  margin: 22px 0 0;
  text-align: center;
}

.auth-switch a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 640px) {
  .site-header { padding: 0 20px; }
  .session > span { display: none; }
  .page { padding-top: 46px; }
}
