:root {
  --ink: #17221f;
  --muted: #5e6964;
  --paper: #f4f1e8;
  --surface: #fffdf7;
  --forest: #12352f;
  --gold: #d6a94f;
  --focus: #765000;
  --danger: #a53030;
  --line: #d7d8ce;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-padding-block: 5.5rem;
}

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 90% 0, #e0eadf 0, transparent 34rem), var(--paper);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

h1,
h2,
p,
label {
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: white;
}

.skip-link:focus {
  top: 1rem;
}

.button:focus-visible,
button:focus-visible,
input:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid white;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus);
  scroll-margin-block: 5.5rem;
}

.landing {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.eyebrow {
  color: #416159;
  overflow-wrap: anywhere;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: .5rem 0 1.25rem;
  font-family: Georgia, serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.055em;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 2.25rem 0 5rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .75rem 1.25rem;
  overflow-wrap: anywhere;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--forest);
}

.button.secondary {
  border-color: #9ca9a3;
  background: rgba(255, 255, 255, .45);
}

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

.assurances {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.assurances h2 {
  font-family: Georgia, serif;
  font-size: 1.75rem;
}

.assurances ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.assurances li {
  display: grid;
  gap: .4rem;
  border-left: 3px solid var(--gold);
  padding: .25rem 1rem;
}

.assurances span {
  color: var(--muted);
  line-height: 1.5;
}

.auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}

.auth-intro {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 8vw, 8rem);
  color: white;
  background: var(--forest);
}

.auth-intro .eyebrow {
  color: #b9d0c5;
}

.auth-intro h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.auth-intro p {
  max-width: 35rem;
  color: #d2dfda;
  font-size: 1.2rem;
}

.auth-card {
  min-width: 0;
  align-self: center;
  display: grid;
  gap: .6rem;
  width: min(430px, calc(100% - 2rem));
  margin: 2rem auto;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(18, 53, 47, .1);
}

.auth-card > * {
  min-width: 0;
}

.auth-card h2 {
  margin: 0 0 1rem;
  font-family: Georgia, serif;
  font-size: 2rem;
}

.auth-card label {
  margin-top: .65rem;
  font-weight: 750;
}

.auth-card input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #8d9893;
  border-radius: .55rem;
  padding: .75rem;
  background: white;
}

.auth-card .checkbox-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
}

.auth-card .checkbox-row input {
  width: 1.2rem;
  min-height: 1.2rem;
}

.auth-card .button {
  margin-top: 1rem;
}

.provider-list {
  display: grid;
  gap: .5rem;
}

.form-separator {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: .85rem;
}

.form-separator::before,
.form-separator::after {
  flex: 1;
  border-top: 1px solid var(--line);
  content: "";
}

.error {
  color: var(--danger);
  font-weight: 700;
}

.privacy-note {
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 760px) {
  .assurances ul,
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-intro {
    min-height: 42vh;
    padding: 3rem 1.25rem;
  }

  .auth-intro h1 {
    font-size: clamp(2.6rem, 14vw, 3.2rem);
  }
}

@media (max-width: 390px) {
  .actions .button {
    width: 100%;
  }
}

@media (max-width: 320px) {
  .landing,
  .auth-card {
    width: calc(100% - 1rem);
  }

  .auth-card {
    padding: 1rem;
  }
}

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

/* Public Campus 360 entry — compact, role-oriented and bounded. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 232, .96);
}

.site-header-inner,
.site-footer-inner {
  width: min(1120px, calc(100% - 2rem));
  min-width: 0;
  margin: 0 auto;
}

.site-header-inner {
  display: grid;
  min-height: 64px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.site-brand {
  display: grid;
  min-height: 44px;
  align-content: center;
  text-decoration: none;
}

.site-brand strong {
  color: var(--forest);
  font-size: .78rem;
  letter-spacing: .12em;
}

.site-brand span {
  color: var(--muted);
  font-size: .82rem;
}

.site-navigation,
.site-footer nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: .3rem 1rem;
}

.site-navigation {
  justify-content: center;
}

.site-navigation a,
.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
}

.site-navigation a:hover,
.site-footer a:hover,
.portal-card a:hover {
  text-decoration: underline;
  text-underline-offset: .22rem;
}

.site-login {
  min-height: 44px;
  padding: .6rem 1rem;
}

.landing {
  padding: 1.5rem 0 3rem;
}

.public-hero {
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
}

h1 {
  max-width: 46rem;
  margin: .45rem 0 .8rem;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.lead {
  max-width: 46rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.public-actions {
  margin: 1.25rem 0 0;
}

.portal-section {
  padding: 2.5rem 0;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 1rem;
}

.section-heading h2,
.demo-callout h2,
.assurances h2 {
  margin: .35rem 0 .45rem;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.25;
}

.section-heading p,
.demo-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.portal-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: .55rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, .56);
}

.portal-number {
  color: #416159;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.portal-card h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.25;
}

.portal-card p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.48;
}

.portal-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  border-top: 1px solid var(--line);
  padding-top: .6rem;
  color: var(--forest);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.demo-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid #9eb2a5;
  border-radius: .8rem;
  padding: 1rem;
  background: #edf4ee;
}

.demo-callout .button {
  margin: 0;
}

.assurances {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.assurances ul {
  gap: .75rem;
}

.assurances li {
  padding: .25rem .8rem;
}

.site-footer {
  border-top: 1px solid #35564e;
  background: var(--forest);
  color: white;
}

.site-footer-inner {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
}

.site-footer-inner > div {
  display: grid;
  gap: .25rem;
}

.site-footer-inner span {
  max-width: 28rem;
  color: #cbdad4;
  font-size: .88rem;
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-intro {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.auth-intro h1 {
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.auth-intro p {
  font-size: 1rem;
}

.auth-card {
  border-radius: .9rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.auth-card h2 {
  font-size: 1.45rem;
}

@media (max-width: 900px) {
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem .75rem;
    padding-block: .4rem;
  }

  .site-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-navigation a {
    font-size: .8rem;
  }

  h1,
  .auth-intro h1 {
    font-size: 1.5rem;
  }

  .auth-intro {
    min-height: 28vh;
    padding: 1.5rem 1rem;
  }

  .demo-callout {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .portal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 320px) {
  .site-header-inner,
  .site-footer-inner {
    width: calc(100% - 1rem);
  }

  .site-login {
    padding-inline: .7rem;
  }
}
