/* =========================================================
   ElimoraHealth Patient Portal — Executive Brand Variant
   Same family, softer patient experience
   ========================================================= */

.portal-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.08), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #f4f7fb 100%);
}

.portal-header {
  background:
    linear-gradient(135deg, var(--eh-navy-950) 0%, var(--eh-navy-900) 55%, #0f766e 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.portal-header-inner {
  width: min(1120px, calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.portal-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--eh-teal), var(--eh-blue));
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 14px 30px rgba(15, 111, 255, 0.22);
}

.portal-brand-title {
  font-weight: 950;
  letter-spacing: -0.03em;
}

.portal-brand-subtitle {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  font-weight: 700;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.portal-nav-link {
  color: rgba(255, 255, 255, 0.68);
  padding: 0.55rem 0.8rem;
  border-radius: var(--eh-radius-pill);
  font-size: 0.85rem;
  font-weight: 850;
}

.portal-nav-link:hover,
.portal-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.portal-container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0;
}

.portal-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--eh-radius-2xl);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(135deg, var(--eh-navy-900), var(--eh-navy-700) 58%, #0f766e);
  box-shadow: var(--eh-shadow-command);
}

.portal-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.portal-hero p {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.portal-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.portal-widget {
  background: #ffffff;
  border: 1px solid var(--eh-border);
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow: var(--eh-shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.portal-widget:hover {
  transform: translateY(-2px);
  box-shadow: var(--eh-shadow-card);
}

.portal-widget-title {
  color: var(--eh-muted);
  font-weight: 850;
  font-size: 0.85rem;
}

.portal-widget-value {
  margin-top: 0.35rem;
  font-size: 1.8rem;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.portal-widget-detail {
  margin-top: 0.4rem;
  color: var(--eh-muted);
  font-size: 0.88rem;
  min-height: 2.5rem;
}

.portal-list {
  display: grid;
  gap: 0.85rem;
}

.portal-list-card {
  background: #ffffff;
  border: 1px solid var(--eh-border);
  border-radius: 26px;
  padding: 1.1rem;
  box-shadow: var(--eh-shadow-soft);
}

.portal-auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.10), transparent 30%),
    linear-gradient(135deg, var(--eh-navy-950), var(--eh-navy-900) 60%, #0f766e);
}

.portal-auth-card {
  width: min(440px, 100%);
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  padding: 2rem;
  box-shadow: var(--eh-shadow-command);
}

.portal-auth-logo {
  width: 66px;
  height: 66px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--eh-teal), var(--eh-blue));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.22);
}

.portal-method-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 0.3rem;
  border-radius: var(--eh-radius-pill);
  margin: 1.25rem 0;
}

.portal-method-button {
  border: none;
  background: transparent;
  border-radius: var(--eh-radius-pill);
  padding: 0.65rem 0.8rem;
  color: var(--eh-muted);
  font-weight: 900;
}

.portal-method-button.active {
  background: #ffffff;
  color: #0e7490;
  box-shadow: var(--eh-shadow-soft);
}

.portal-otp-input {
  height: 64px;
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--eh-border);
  background: #fbfdff;
  text-align: center;
  font-size: 2rem;
  font-weight: 950;
  letter-spacing: 0.55em;
}

@media (max-width: 991.98px) {
  .portal-nav { display: none; }
  .portal-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .portal-header-inner,
  .portal-container { width: calc(100% - 1rem); }
  .portal-dashboard-grid { grid-template-columns: 1fr; }
  .portal-hero,
  .portal-widget,
  .portal-list-card { border-radius: 24px; }
}
