.portal-auth-page {
  min-height: 100vh;
  background: #fff;
  color: #101828;
}

.portal-auth-page.hidden {
  display: none !important;
}

.portal-auth-grid {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.92fr);
}

.left-panel,
.portal-auth-left {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(var(--portal-brand-primary-rgb, 10, 35, 66), 0.1), transparent 29%),
    radial-gradient(circle at 82% 83%, rgba(var(--portal-brand-primary-rgb, 10, 35, 66), 0.08), transparent 27%),
    color-mix(in srgb, var(--portal-brand-primary, #0A2342) 4%, white);
}

.portal-auth-field {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.portal-auth-field:focus {
  border-color: var(--portal-brand-primary, #0A2342);
  box-shadow: 0 0 0 4px rgba(var(--portal-brand-primary-rgb, 10, 35, 66), 0.1);
  outline: none;
}

.portal-auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.portal-auth-brand {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.portal-auth-logo {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.portal-auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html:not([data-brand-has-logo="1"]) [data-brand-logo-image],
html:not([data-brand-has-logo="1"]) [data-brand-logo-wrap],
html:not([data-brand-has-logo="1"]) .portal-auth-logo,
html:not([data-brand-has-logo="1"]) img.brand-logo {
  display: none !important;
}

.portal-auth-kicker {
  margin: 0 0 12px;
  color: var(--portal-brand-primary, #0A2342);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portal-auth-title {
  margin: 0;
  color: #101828;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.04em;
}

.portal-auth-title span {
  color: var(--portal-brand-primary, #0A2342);
}

.portal-auth-sub {
  max-width: 32rem;
  margin: 20px 0 0;
  color: #667085;
  font-size: 16px;
  line-height: 1.7;
}

.portal-auth-right {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 48px 24px;
}

.portal-auth-form {
  width: 100%;
  max-width: 560px;
}

@media (max-width: 1024px) {
  .portal-auth-grid {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.9fr);
  }
  .portal-auth-trust-copy {
    display: none;
  }
}

@media (max-width: 820px) {
  .portal-auth-grid {
    display: block;
  }
  .portal-auth-left {
    min-height: auto;
  }
  .portal-auth-illustration-wrap {
    max-width: 680px;
    margin-inline: auto;
  }
}

@media (max-width: 540px) {
  .portal-auth-hero {
    margin-inline: -14px;
    width: calc(100% + 28px);
  }
}

/* Staff portal sidebar: fixed brand header, scrollable nav only */
#dashboardPage aside#sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#dashboardPage aside#sidebar > .sidebar-header,
#dashboardPage aside#sidebar > .p-6.border-b.border-gray-100 {
  flex-shrink: 0;
  background: #fff;
}

#dashboardPage aside#sidebar #sidebarNav,
#dashboardPage aside#sidebar > nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#dashboardPage aside#sidebar > .sidebar-footer,
#dashboardPage aside#sidebar > .p-4.border-t.border-gray-100 {
  flex-shrink: 0;
  margin-top: 0;
}
