:root {
  color-scheme: light;
  --navy: #0a455f;
  --blue: #176c8c;
  --teal: #4caeb0;
  --ink: #173345;
  --muted: #5f7380;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 12%, rgba(76, 174, 176, 0.19), transparent 28rem),
    linear-gradient(145deg, #f8fbfc, #eaf4f7);
  font-family: "Segoe UI", Arial, sans-serif;
}

.portal-shell {
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.portal-card {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid rgba(23, 108, 140, 0.22);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 22px 64px rgba(10, 69, 95, 0.14);
  text-align: center;
}

.portal-logo {
  display: block;
  width: min(320px, 74%);
  height: auto;
  margin: 0 auto 18px;
}

.portal-eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.85rem, 5vw, 2.65rem);
}

.portal-description {
  max-width: 650px;
  margin: 15px auto 30px;
  color: var(--muted);
  line-height: 1.55;
}

.portal-access {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.portal-access-button {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--blue);
  border-radius: 14px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 9px 24px rgba(23, 108, 140, 0.16);
  font-size: 1.04rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.portal-access-button.is-perito {
  border-color: #287f80;
  background: #287f80;
}

.portal-access-button:hover,
.portal-access-button:focus-visible {
  border-color: var(--navy);
  background: var(--navy);
  box-shadow: 0 10px 28px rgba(10, 69, 95, 0.22);
}

.portal-access-button:focus-visible {
  outline: 3px solid rgba(23, 108, 140, 0.28);
  outline-offset: 3px;
}

.portal-access-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.portal-access-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

footer {
  padding: 14px 18px 18px;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
}

.product-footer-line {
  display: block;
  line-height: 1.45;
}

.product-footer-title {
  color: var(--ink);
}

@media (max-width: 640px) {
  .portal-shell {
    padding: 18px 12px;
  }

  .portal-card {
    padding: 28px 20px;
  }

  .portal-access {
    grid-template-columns: 1fr;
  }

  .portal-access-button {
    min-height: 66px;
  }
}
