/* ── Portal Page Layout ────────────────────────────────────── */
.portal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-main {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
}

.portal-bg {
  position: absolute;
  inset: 0;
  background: url('helm-background.png') center/cover no-repeat;
  filter: blur(3px);
  opacity: 0.35;
}
.portal-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, transparent 20%, var(--surface) 75%),
    linear-gradient(to bottom, rgba(250, 249, 247, 0.4) 0%, var(--surface) 100%);
}

/* ── Auth card (centered on page) ─────────────────────────── */
.portal-page .portal-auth {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

/* ── Dashboard (full width when authenticated) ────────────── */
.portal-dashboard-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
}

.portal-page .portal-dashboard {
  max-width: 720px;
  margin: 0 auto;
}

/* ── Footer pinned to bottom ──────────────────────────────── */
.portal-footer {
  margin-top: auto;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .portal-main { padding: 100px 16px 40px; }
  .portal-page .portal-card { padding: 28px 20px; }
  .portal-page .dashboard-header { flex-direction: column; gap: 16px; align-items: flex-start; }
  .portal-page .download-buttons { flex-direction: column; }
}
