:root {
  --entry-navy-900: #102b57;
  --entry-navy-800: #123a78;
  --entry-blue-600: #2563eb;
  --entry-blue-100: #dbeafe;
  --entry-sky-500: #38bdf8;
  --entry-violet-600: #7c3aed;
  --entry-amber-500: #f59e0b;
  --entry-text: #17233b;
  --entry-muted: #66738b;
  --entry-border: #dbe3ef;
  --entry-surface: #ffffff;
  --entry-background: #f5f7fb;
}


/* Padrão tipográfico final desta janela e de seus popups. */
html body *:not(#geducacional-font-size-14),
html body *:not(#geducacional-font-size-14)::before,
html body *:not(#geducacional-font-size-14)::after {
  font-size: 14px !important;
  font-weight: 400 !important;
}
html body table,
html body table *,
html body .data-table,
html body .data-table * {
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
}
html body table th,
html body .data-table th {
  line-height: 1.3 !important;
  text-transform: none !important;
  white-space: nowrap !important;
}
html body table td,
html body .data-table td {
  line-height: 1.35 !important;
}

.portal-entry-page,
.portal-entry-page * {
  box-sizing: border-box;
  font-weight: 400;
}

.portal-entry-page {
  height: 100vh;
  height: 100svh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: 64px minmax(0, 1fr) 42px;
  overflow: hidden;
  color: var(--entry-text);
  background:
    radial-gradient(circle at 4% 18%, rgba(56, 189, 248, 0.15), transparent 24%),
    radial-gradient(circle at 94% 16%, rgba(124, 58, 237, 0.1), transparent 22%),
    linear-gradient(180deg, #fafcff 0%, var(--entry-background) 100%);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.entry-header,
.entry-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-color: rgba(181, 195, 216, 0.58);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.entry-header {
  height: 100%;
  min-height: 0;
  padding: 8px clamp(24px, 4.5vw, 72px);
  border-bottom: 1px solid rgba(181, 195, 216, 0.58);
}

.entry-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--entry-navy-800);
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.entry-brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--entry-blue-600), #1555cf);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.entry-header__context {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--entry-muted);
  font-size: 0.92rem;
}

.entry-header__context svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entry-main {
  width: min(1480px, calc(100% - 48px));
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.92fr);
  align-items: center;
  gap: clamp(42px, 5vw, 86px);
  padding: clamp(14px, 2.2vh, 26px) 0;
  overflow: hidden;
}

.entry-hero {
  min-width: 0;
}

.entry-hero__copy {
  max-width: 660px;
}

.entry-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--entry-blue-600);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entry-hero h1,
.portal-selector h2 {
  margin: 0;
  color: var(--entry-navy-900);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.entry-hero h1 {
  max-width: 700px;
  font-size: clamp(2.5rem, 6.5vh, 4.5rem);
}

.entry-hero__copy > p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--entry-muted);
  font-size: clamp(0.98rem, 1.2vw, 1.15rem);
  line-height: 1.5;
}

.entry-illustration {
  width: auto;
  max-width: min(100%, 620px);
  max-height: min(43vh, 335px);
  height: auto;
  display: block;
  margin: clamp(10px, 1.8vh, 20px) auto 0;
}

.portal-selector {
  width: 100%;
  max-width: 650px;
  justify-self: end;
}

.portal-selector__heading {
  margin-bottom: 14px;
}

.portal-selector h2 {
  font-size: clamp(1.9rem, 4.7vh, 2.75rem);
}

.portal-selector__heading > p {
  margin: 8px 0 0;
  color: var(--entry-muted);
  line-height: 1.55;
}

.portal-list {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
  height: min(40vh, 294px);
}

.portal-card {
  --portal-accent: var(--entry-blue-600);
  --portal-soft: #eef5ff;
  min-height: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border: 1px solid var(--entry-border);
  border-left: 3px solid var(--portal-accent);
  border-radius: 16px;
  color: var(--entry-text);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 35px rgba(29, 48, 84, 0.07);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.portal-card--teacher {
  --portal-accent: var(--entry-violet-600);
  --portal-soft: #f4efff;
}

.portal-card--student {
  --portal-accent: var(--entry-amber-500);
  --portal-soft: #fff7e7;
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--portal-accent) 58%, var(--entry-border));
  box-shadow: 0 20px 44px rgba(29, 48, 84, 0.13);
}

.portal-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--portal-accent) 34%, transparent);
  outline-offset: 4px;
}

.portal-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: var(--portal-accent);
  background: var(--portal-soft);
}

.portal-card__icon svg,
.portal-card__arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-card__icon svg {
  width: 30px;
  height: 30px;
}

.portal-card__content {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.portal-card__title {
  color: var(--entry-navy-900);
  font-size: 1.08rem;
}

.portal-card__description {
  color: var(--entry-muted);
  line-height: 1.45;
}

.portal-card__arrow {
  width: 27px;
  height: 27px;
  color: var(--portal-accent);
  transition: transform 180ms ease;
}

.portal-card:hover .portal-card__arrow {
  transform: translateX(4px);
}

.entry-create-access {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 13px;
  min-height: 54px;
  margin-top: 11px;
  padding: 8px 16px;
  border: 1px dashed #aebddd;
  border-radius: 15px;
  color: var(--entry-navy-800);
  background: rgba(239, 245, 255, 0.76);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.entry-create-access:hover {
  border-color: var(--entry-blue-600);
  background: #eaf2ff;
  transform: translateY(-2px);
}

.entry-create-access__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--entry-navy-800);
}

.entry-create-access__icon svg,
.entry-create-access__arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entry-create-access__icon svg { width: 24px; height: 24px; }
.entry-create-access__arrow { width: 24px; height: 24px; color: var(--entry-blue-600); }

.entry-create-access > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.entry-create-access__title { font-size: 0.9rem; }
.entry-create-access__text { color: var(--entry-muted); font-size: 0.73rem; }

.entry-footer {
  height: 100%;
  min-height: 0;
  padding: 6px clamp(24px, 4.5vw, 72px);
  border-top: 1px solid rgba(181, 195, 216, 0.58);
  color: var(--entry-muted);
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .portal-entry-page {
    grid-template-rows: 58px minmax(0, 1fr) 34px;
  }

  .entry-main {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    padding-block: 12px;
  }

  .entry-hero {
    display: block;
  }

  .entry-hero h1 {
    font-size: clamp(2.1rem, 6vw, 3.3rem);
  }

  .entry-illustration {
    display: none;
  }

  .portal-selector {
    max-width: none;
    justify-self: stretch;
  }

  .portal-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
    height: min(30vh, 190px);
  }

  .entry-create-access { min-height: 50px; margin-top: 9px; }

  .portal-card {
    min-height: 0;
    grid-template-columns: 1fr auto;
    align-content: start;
    padding: 16px;
  }

  .portal-card__icon,
  .portal-card__content {
    grid-column: 1 / -1;
  }

  .portal-card__arrow {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 760px) {
  .portal-entry-page {
    grid-template-rows: 56px minmax(0, 1fr) 30px;
  }

  .entry-header {
    height: 100%;
    min-height: 0;
    padding-inline: 20px;
  }

  .entry-header__context {
    display: none;
  }

  .entry-main {
    width: min(100% - 32px, 680px);
    gap: 14px;
    padding-block: 10px;
  }

  .entry-hero {
    display: block;
  }

  .entry-hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .entry-illustration {
    display: none;
  }

  .portal-selector h2 {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
  }

  .portal-list {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    height: min(39vh, 266px);
    gap: 9px;
  }

  .entry-create-access__text { display: none; }

  .portal-card {
    min-height: 0;
    grid-template-columns: 48px minmax(0, 1fr) 22px;
    align-content: center;
    gap: 16px;
    padding: 10px 14px;
  }

  .portal-card__icon,
  .portal-card__content,
  .portal-card__arrow {
    grid-column: auto;
    grid-row: auto;
  }

  .portal-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .entry-footer {
    justify-content: center;
    padding-inline: 20px;
  }

  .entry-footer span:last-child {
    display: none;
  }
}

@media (max-height: 700px) and (min-width: 901px) {
  .portal-entry-page {
    grid-template-rows: 58px minmax(0, 1fr) 34px;
  }

  .entry-main {
    padding-block: 10px;
  }

  .entry-hero h1 {
    font-size: clamp(2.4rem, 6.2vh, 3.6rem);
  }

  .entry-illustration {
    max-height: 34vh;
    margin-top: 8px;
  }

  .portal-selector__heading {
    margin-bottom: 10px;
  }

  .portal-list {
    height: min(38vh, 250px);
    gap: 10px;
  }

  .portal-card {
    padding-block: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-card,
  .portal-card__arrow {
    transition: none;
  }
}
