@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  --esmeralda: #0b3d32;
  --preto-fundo: #05241e;
  --jade: #4a9b7e;
  --texto: #f3f8f5;
  --texto-suave: #c5d4ce;
  --cartao: #0b3d32;
  --input: #05241e;
  --borda: rgba(74, 155, 126, 0.35);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

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

.portal-body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
  background: var(--preto-fundo);
  color: var(--texto);
  font-family: Inter, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.portal-shell {
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portal-top {
  display: flex;
  justify-content: center;
}

.portal-wordmark {
  display: block;
  max-width: min(220px, 72vw);
  height: auto;
}

.portal-card {
  background: var(--cartao);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.portal-card--erro {
  text-align: center;
}

.portal-titulo {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--texto);
}

.portal-texto {
  margin: 0 0 1.25rem;
  color: var(--texto-suave);
  font-size: 0.9375rem;
}

.portal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portal-label-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.portal-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--texto);
  margin: 0;
}

.portal-info {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--texto-suave);
  cursor: help;
}

.portal-info:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 2px;
  border-radius: 4px;
}

.portal-tooltip {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 2;
  max-width: min(16.5rem, 92vw);
  padding: 0.55rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: #fff;
  background: var(--preto-fundo);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.portal-info:hover + .portal-tooltip,
.portal-info:focus + .portal-tooltip,
.portal-tooltip.portal-tooltip--visivel {
  opacity: 1;
  visibility: visible;
}

.portal-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--borda);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  color: var(--texto);
  background: var(--input);
}

.portal-input:focus {
  outline: 2px solid var(--jade);
  outline-offset: 1px;
}

.portal-submit {
  margin-top: 0.25rem;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--preto-fundo);
  background: var(--jade);
  cursor: pointer;
}

.portal-submit:hover {
  filter: brightness(1.05);
}

.portal-submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.portal-rodape {
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--texto-suave);
}

.portal-erro {
  margin: 0 0 1rem;
  color: var(--texto);
}

.portal-link {
  color: var(--jade);
}

.portal-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 480px) {
  .portal-card {
    padding: 2rem 1.75rem 1.75rem;
  }
}
