:root {
  --paper: #eef3f9;
  --panel: rgba(255, 255, 255, 0.96);
  --ink: #0d2238;
  --muted: #4a627a;
  --line: #c9d8e7;
  --accent: #003366;
  --accent-strong: #00264d;
  --highlight: #003366;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: "Palatino Linotype", Georgia, serif;
  background:
    radial-gradient(circle at top right, rgba(0, 51, 102, 0.14), transparent 22rem),
    linear-gradient(180deg, #f7fbff 0%, var(--paper) 58%, #dde8f3 100%);
}

a {
  color: inherit;
}

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem;
}

body > .shell {
  flex: 1 0 auto;
}

.dashboard-body > .shell {
  padding-top: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: min(100%, 420px);
  max-height: 92px;
  object-fit: contain;
}

.case-landing {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.case-brand-panel {
  display: flex;
  justify-content: center;
  padding: 0 0 1.5rem;
}

.brand-logo-hero {
  width: min(100%, 560px);
  max-height: 180px;
}

.primary-link,
.ghost-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.primary-link,
button {
  background: var(--accent);
  color: #fff;
}

.ghost-link {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.panel,
.support-panel {
  background: var(--panel);
  border: 1px solid rgba(0, 51, 102, 0.12);
  border-radius: 28px;
  padding: 1.7rem;
  box-shadow: 0 24px 56px rgba(0, 51, 102, 0.09);
}

.form-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.form-wrap h1 {
  margin: 0.4rem 0 0.9rem;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.05;
}

.eyebrow {
  margin: 0;
  color: var(--highlight);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.hero-actions-centered {
  justify-content: center;
}

.case-copy {
  text-align: left;
}

.case-copy h1 {
  margin: 0.35rem 0 1.1rem;
  color: var(--accent);
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  line-height: 1.08;
  text-align: center;
}

.announcement-copy {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.announcement-copy p {
  margin: 0 0 1rem;
}

.maintenance-link {
  min-width: 280px;
}

.case-copy .hero-actions {
  justify-content: center;
}

.login-panel {
  max-width: 720px;
  margin: 0 auto;
}

.dashboard-shell {
  padding-top: 0;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 51, 102, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 51, 102, 0.08);
}

.dashboard-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.dashboard-logo {
  width: min(100%, 260px);
  max-height: 72px;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-name {
  font-weight: 700;
  color: var(--accent);
}

.lead-tight {
  margin-top: -0.1rem;
  margin-bottom: 1.25rem;
}

.portal-form {
  display: grid;
  gap: 1rem;
}

.portal-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.intake-form {
  display: grid;
  gap: 1rem;
}

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

label {
  display: grid;
  gap: 0.35rem;
}

label span {
  font-size: 0.92rem;
  font-weight: 700;
}

.required-mark {
  color: #b42318;
}

input {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.notice {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
}

.notice.error {
  background: #fff1f0;
  color: #8a2121;
}

.success-grid {
  display: grid;
  gap: 1rem;
}

.success-grid div {
  display: grid;
  gap: 0.25rem;
}

.success-grid strong {
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer {
  flex-shrink: 0;
  background: #16212b;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer .shell {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .dashboard-user {
    justify-content: flex-start;
  }

  .brand-logo {
    max-height: 72px;
    width: min(100%, 340px);
  }

  .brand-logo-hero {
    max-height: 132px;
  }
}
