:root {
  --pork-orange: #f89828;
  --pork-black: #000000;
  --pork-midnight: #002958;
  --pork-light-blue: #5da7e5;
  --pork-blue: #1382c5;
  --ink: #172235;
  --muted: #5b6676;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --border: #d9e3ec;
  --shadow: 0 22px 58px rgba(0, 41, 88, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--pork-midnight);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  background:
    linear-gradient(120deg, rgba(0, 41, 88, 0.95), rgba(19, 130, 197, 0.66)),
    linear-gradient(180deg, #eaf4fc 0%, #dcecf8 100%);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 56px);
}

.login-card {
  width: min(1120px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand-bar {
  height: 10px;
  background:
    linear-gradient(
      90deg,
      var(--pork-orange) 0 34%,
      var(--pork-light-blue) 34% 68%,
      var(--pork-midnight) 68% 100%
    );
}

.content-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(32px, 6vw, 48px);
  background:
    linear-gradient(180deg, rgba(245, 248, 251, 0.82), #ffffff 44%),
    var(--surface);
}

.brand-logo {
  width: 148px;
  height: auto;
  margin: 0 0 30px;
}

.eyebrow {
  margin: 0;
  color: var(--pork-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--pork-midnight);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.intro,
.access-note,
.copy-section p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.6;
}

.intro {
  margin: 18px 0 0;
  font-size: 1rem;
}

.access-note {
  margin: 18px 0 0;
  font-size: 1rem;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: min(430px, 100%);
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button:focus-visible {
  outline: 4px solid rgba(248, 152, 40, 0.42);
  outline-offset: 3px;
}

.button-primary {
  color: var(--pork-black);
  background: var(--pork-orange);
}

.button-primary:hover {
  background: #e8871d;
}

.button-secondary {
  color: var(--pork-midnight);
  background: #ffffff;
  border-color: var(--border);
}

.button-secondary:hover {
  border-color: var(--pork-light-blue);
  color: var(--pork-blue);
}

.portal-sections {
  display: grid;
  gap: 18px;
  width: 100%;
  margin-top: 34px;
}

.copy-section {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.copy-section h2 {
  margin: 0 0 12px;
  color: var(--pork-midnight);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.copy-section ol,
.copy-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.35rem;
  color: var(--muted);
  line-height: 1.55;
}

.copy-section li::marker {
  color: var(--pork-blue);
  font-weight: 800;
}

.copy-section p {
  margin: 0;
}

.important-section {
  border-color: rgba(248, 152, 40, 0.42);
  background: rgba(248, 152, 40, 0.08);
}

.support-note {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.support-note a,
.text-button {
  color: var(--pork-blue);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.support-note a:hover,
.text-button:hover {
  color: var(--pork-midnight);
}

.text-button:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(248, 152, 40, 0.42);
  outline-offset: 3px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 18, 39, 0.72);
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--pork-midnight);
  background: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--pork-light-blue);
  color: var(--pork-blue);
}

.modal-close:focus-visible {
  outline: 4px solid rgba(248, 152, 40, 0.42);
  outline-offset: 3px;
}

.modal-header {
  padding: 28px 78px 22px 28px;
  border-top: 10px solid var(--pork-orange);
  background:
    linear-gradient(180deg, rgba(245, 248, 251, 0.86), #ffffff),
    var(--surface);
}

.modal-header h2 {
  margin: 0;
  color: var(--pork-midnight);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.modal-header p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.contact-iframe {
  width: 100%;
  height: min(640px, calc(100vh - 190px));
  min-height: 440px;
  border: 0;
  background: var(--surface-soft);
}

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

  .content-panel {
    padding: 30px 24px;
  }

  .brand-logo {
    width: 132px;
    margin-bottom: 28px;
  }

  .actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .copy-section {
    padding: 18px;
  }

  .modal {
    padding: 12px;
  }

  .modal-content {
    max-height: calc(100vh - 24px);
  }

  .modal-header {
    padding: 24px 68px 18px 22px;
  }

  .contact-iframe {
    height: calc(100vh - 170px);
    min-height: 360px;
  }
}

@media (min-width: 960px) {
  .page-shell {
    padding: clamp(12px, 2vw, 24px);
  }

  .content-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 0 clamp(24px, 3vw, 42px);
    padding: clamp(20px, 2.5vw, 32px);
  }

  .brand-logo,
  .eyebrow,
  h1,
  .intro,
  .access-note,
  .actions,
  .support-note {
    grid-column: 1;
  }

  .brand-logo {
    width: 112px;
    margin-bottom: 16px;
  }

  h1 {
    margin-top: 10px;
    font-size: clamp(1.75rem, 2.2vw, 2.35rem);
    line-height: 1.05;
  }

  .intro,
  .access-note {
    font-size: 0.88rem;
    line-height: 1.38;
  }

  .intro {
    margin-top: 14px;
  }

  .access-note {
    margin-top: 12px;
  }

  .actions {
    width: 100%;
    margin-top: 18px;
  }

  .button {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.94rem;
  }

  .portal-sections {
    grid-column: 2;
    grid-row: 1 / span 7;
    gap: 10px;
    margin-top: 0;
  }

  .copy-section {
    padding: 12px 14px;
  }

  .copy-section h2 {
    margin-bottom: 6px;
    font-size: 0.94rem;
  }

  .copy-section ol,
  .copy-section ul {
    gap: 5px;
    font-size: 0.86rem;
    line-height: 1.32;
  }

  .copy-section p {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  .support-note {
    align-self: end;
    margin-top: 14px;
    font-size: 0.86rem;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
