/* Portal Emisor · MultiRL FE CR — marca corporativa */
:root {
  /* Paleta MultiRL */
  --brand-navy: #232248;
  --brand-blue: #459DDD;
  --brand-blue-light: #7CC7F5;
  --brand-gray: #F2F4F7;
  --brand-text: #4B5563;
  --brand-white: #FFFFFF;

  --portal-bg: #1a1a36;
  --portal-surface: rgba(35, 34, 72, 0.78);
  --portal-surface-2: rgba(26, 26, 54, 0.92);
  --portal-border: rgba(124, 199, 245, 0.16);
  --portal-border-strong: rgba(69, 157, 221, 0.45);
  --portal-text: #FFFFFF;
  --portal-muted: #9ca3b8;
  --portal-accent: #459DDD;
  --portal-accent-2: #7CC7F5;
  --portal-danger: #fb7185;
  --portal-ok: #7CC7F5;
  --portal-warn: #fbbf24;
  --portal-radius: 1rem;
  --portal-font: "Source Sans 3", "Segoe UI", sans-serif;
  --portal-display: "Syne", "Source Sans 3", sans-serif;
  --portal-mono: "IBM Plex Mono", ui-monospace, monospace;
}

.portal-body {
  min-height: 100vh;
  color: var(--portal-text);
  font-family: var(--portal-font);
  background:
    radial-gradient(1000px 480px at 12% -10%, rgba(69, 157, 221, 0.22), transparent 55%),
    radial-gradient(800px 420px at 90% 0%, rgba(124, 199, 245, 0.12), transparent 50%),
    linear-gradient(180deg, #232248 0%, var(--portal-bg) 42%, #141428 100%);
  background-attachment: fixed;
}

.portal-display { font-family: var(--portal-display); }
.portal-mono { font-family: var(--portal-mono); }

.portal-shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--portal-border);
  background: rgba(35, 34, 72, 0.9);
  backdrop-filter: blur(14px);
}

.portal-brand-mark {
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--portal-accent-2);
  font-weight: 600;
}

.portal-nav a {
  color: var(--portal-muted);
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.portal-nav a:hover { color: var(--brand-white); background: rgba(124, 199, 245, 0.12); }
.portal-nav a.is-active {
  color: var(--brand-white);
  background: linear-gradient(120deg, var(--portal-accent), #3a8fc9);
  font-weight: 600;
}
.portal-nav a.is-exit:hover {
  color: var(--portal-danger);
  background: rgba(251, 113, 133, 0.1);
}

.portal-hero {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem 0 0.5rem;
}
@media (min-width: 900px) {
  .portal-hero {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
}

.portal-hero h1 {
  font-family: var(--portal-display);
  font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.portal-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.25rem;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  background: rgba(26, 26, 54, 0.65);
}
.portal-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--portal-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.15s ease;
}
.portal-tabs button:hover { color: var(--brand-white); }
.portal-tabs button.is-active {
  color: var(--brand-white);
  background: linear-gradient(120deg, var(--portal-accent), #3a8fc9);
  box-shadow: 0 8px 24px -12px rgba(69, 157, 221, 0.75);
}

.portal-panel { display: none; animation: portalFade 0.28s ease; }
.portal-panel.is-active { display: block; }
@keyframes portalFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.portal-card {
  border: 1px solid var(--portal-border);
  border-radius: var(--portal-radius);
  background: var(--portal-surface);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.8);
}

.portal-card-head {
  padding: 1.15rem 1.25rem 0.35rem;
}
.portal-card-head h2 {
  font-family: var(--portal-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.portal-card-body { padding: 1rem 1.25rem 1.25rem; }

.portal-stat {
  padding: 1.15rem 1.2rem;
  border-radius: var(--portal-radius);
  border: 1px solid var(--portal-border);
  background: linear-gradient(160deg, rgba(69, 157, 221, 0.14), rgba(35, 34, 72, 0.75));
}
.portal-stat .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--portal-muted);
}
.portal-stat .value {
  margin-top: 0.35rem;
  font-family: var(--portal-display);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-white);
}
.portal-stat .value.accent { color: var(--portal-accent-2); }
.portal-stat .hint { margin-top: 0.2rem; font-size: 0.75rem; color: var(--portal-muted); }

.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.portal-badge.ok { background: rgba(69, 157, 221, 0.14); color: var(--portal-accent-2); border: 1px solid rgba(69, 157, 221, 0.35); }
.portal-badge.warn { background: rgba(251, 191, 36, 0.1); color: var(--portal-warn); border: 1px solid rgba(251, 191, 36, 0.28); }

.portal-alert {
  border-radius: 0.85rem;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.portal-alert.ok { border: 1px solid rgba(69, 157, 221, 0.35); background: rgba(69, 157, 221, 0.12); color: #dbeafe; }
.portal-alert.err { border: 1px solid rgba(251, 113, 133, 0.3); background: rgba(251, 113, 133, 0.1); color: #fecdd3; }

.portal-field { display: block; }
.portal-field span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  color: #c5cad6;
}
.portal-input,
.portal-field input,
.portal-field select,
.portal-field textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(124, 199, 245, 0.22);
  background: var(--portal-surface-2);
  color: var(--portal-text);
  padding: 0.7rem 0.85rem;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.portal-field input:focus,
.portal-field select:focus,
.portal-field textarea:focus {
  border-color: rgba(69, 157, 221, 0.7);
  box-shadow: 0 0 0 3px rgba(69, 157, 221, 0.18);
}

.portal-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 0.75rem;
  padding: 0.7rem 1.05rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}
.portal-btn:active { transform: scale(0.98); }
.portal-btn-primary {
  color: var(--brand-white);
  background: linear-gradient(120deg, var(--portal-accent), #3a8fc9);
  box-shadow: 0 10px 24px -14px rgba(69, 157, 221, 0.9);
}
.portal-btn-primary:hover { filter: brightness(1.08); }
.portal-btn-ghost {
  color: var(--brand-gray);
  background: transparent;
  border: 1px solid rgba(124, 199, 245, 0.28);
}
.portal-btn-ghost:hover { background: rgba(124, 199, 245, 0.1); }
.portal-btn-sm { padding: 0.4rem 0.7rem; font-size: 0.78rem; }

.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.portal-table th {
  text-align: left;
  color: var(--portal-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem;
}
.portal-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--portal-border);
  vertical-align: top;
}
.portal-table tr:hover td { background: rgba(124, 199, 245, 0.05); }

.portal-plan {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--portal-radius);
  border: 1px solid var(--portal-border);
  background: linear-gradient(180deg, rgba(35, 34, 72, 0.85), rgba(26, 26, 54, 0.95));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.portal-plan:hover {
  transform: translateY(-3px);
  border-color: rgba(69, 157, 221, 0.45);
  box-shadow: 0 18px 36px -24px rgba(69, 157, 221, 0.5);
}
.portal-plan.is-featured {
  border-color: rgba(69, 157, 221, 0.55);
  box-shadow: 0 0 0 1px rgba(69, 157, 221, 0.15), 0 22px 40px -24px rgba(69, 157, 221, 0.45);
}
.portal-plan-top {
  height: 3px;
  background: linear-gradient(90deg, #7CC7F5, #459DDD, #232248);
}
.portal-plan-body { padding: 1.15rem; display: flex; flex-direction: column; flex: 1; }

.portal-checklist {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
}
.portal-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: #c5cad6;
}
.portal-check i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--portal-accent);
  box-shadow: 0 0 0 3px rgba(69, 157, 221, 0.18);
}

.portal-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.portal-login-card {
  width: min(420px, 100%);
  padding: 2rem 1.6rem;
  border-radius: 1.25rem;
  border: 1px solid var(--portal-border);
  background: rgba(35, 34, 72, 0.88);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.9);
}
