/* =========================================================
   Portal do cliente — área institucional + login
   ========================================================= */

.portal-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f1f5f9;
}

.portal-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 100vh;
}

/* ---------- LADO ESQUERDO: institucional ---------- */
.portal-info {
  background: linear-gradient(135deg, var(--portal-cor, #2563eb) 0%, #0f172a 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}

.portal-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.15), transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(255,255,255,.1), transparent 50%);
  pointer-events: none;
}

.portal-info-inner {
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.portal-logo {
  margin-bottom: 24px;
}
.portal-logo img {
  max-height: 72px;
  border-radius: 12px;
  background: #fff;
  padding: 8px 16px;
}
.portal-logo-icon {
  font-size: 72px;
  line-height: 1;
}

.portal-info h1 {
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -.02em;
}

.portal-subtitulo {
  font-size: 18px;
  opacity: .9;
  margin: 0 0 32px;
  line-height: 1.5;
}

.portal-sobre {
  font-size: 15px;
  line-height: 1.7;
  opacity: .9;
  margin-bottom: 32px;
  padding: 20px;
  background: rgba(255,255,255,.1);
  border-left: 4px solid rgba(255,255,255,.4);
  border-radius: 8px;
}

.portal-contatos {
  display: grid;
  gap: 12px;
}

.portal-contato {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid rgba(255,255,255,.15);
}
.portal-contato:hover {
  background: rgba(255,255,255,.2);
  text-decoration: none;
  transform: translateX(4px);
}
.portal-contato > span {
  font-size: 24px;
  line-height: 1;
}
.portal-contato strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .8;
  font-weight: 600;
}
.portal-contato small {
  display: block;
  font-size: 15px;
  font-weight: 500;
  opacity: 1;
  margin-top: 2px;
}

/* ---------- LADO DIREITO: login ---------- */
.portal-login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fff;
}

.portal-login-inner {
  width: 100%;
  max-width: 400px;
}

.portal-login h2 {
  font-size: 28px;
  margin: 0 0 8px;
  color: #0f172a;
}

.portal-login .muted {
  color: #64748b;
  margin: 0 0 24px;
  font-size: 15px;
}

.portal-login-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
}

.portal-copyright {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}
.portal-copyright a {
  color: var(--portal-cor, #2563eb);
}

/* ---------- Lista de empresas (sem slug) ---------- */
.portal-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.portal-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}
.portal-brand {
  text-align: center;
  margin-bottom: 28px;
}
.portal-brand h1 {
  margin: 12px 0 6px;
  font-size: 24px;
}
.portal-brand .muted {
  color: #64748b;
  font-size: 14px;
}

.portal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.portal-list li {
  margin-bottom: 8px;
}
.portal-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  transition: all .15s;
  position: relative;
}
.portal-list a:hover {
  border-color: #2563eb;
  background: #f8fafc;
  text-decoration: none;
}
.portal-list a strong {
  font-size: 15px;
}
.portal-list a .muted {
  color: #64748b;
  font-size: 13px;
  display: block;
}
.portal-list a .portal-arrow {
  margin-left: auto;
  font-size: 18px;
  color: #2563eb;
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }
  .portal-info {
    padding: 40px 24px;
    min-height: auto;
  }
  .portal-info h1 {
    font-size: 28px;
  }
  .portal-subtitulo {
    font-size: 16px;
  }
  .portal-login {
    padding: 32px 24px 60px;
  }
}

@media (max-width: 480px) {
  .portal-card {
    padding: 28px 20px;
  }
  .portal-contato {
    padding: 12px 14px;
  }
  .portal-contato > span {
    font-size: 20px;
  }
}