:root {
  --lead-primary: #3f51b5;
  --lead-primary-dark: #303f9f;
  --lead-ink: #1f2937;
}

body {
  font-family: "Poppins", sans-serif;
}

/* Keep the header and sidebar on the same grid so the logo and profile panel do not overlap. */
.page-header.navbar,
.page-header.navbar .page-header-inner {
  min-height: 70px;
  height: 70px;
}

.page-header.navbar .page-logo {
  box-sizing: border-box;
  width: 260px !important;
  height: 70px !important;
  display: flex;
  align-items: center;
  padding: 0 24px !important;
  overflow: hidden;
}

.page-header.navbar .page-logo > a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  text-decoration: none;
}

.page-logo .logo-icon {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  transform: rotate(-8deg);
  font-size: 34px !important;
  line-height: 1;
}

.page-logo .logo-default {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar {
  color: #3f51b5;
  font-size: 30px;
  vertical-align: middle;
  margin-right: 6px;
}

.sidebar-avatar {
  color: #aeb7c2;
  font-size: 48px;
}

.theme-logout-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #555;
  cursor: pointer;
  padding: 8px 16px;
  text-align: left;
}

.theme-logout-button:hover {
  background: #f5f5f5;
}

.page-container {
  margin-top: 70px !important;
}

.sidebar-container,
.sidemenu-container {
  width: 260px !important;
}

.sidemenu-container {
  top: 70px !important;
}

.page-content-wrapper .page-content {
  margin-left: 260px !important;
}

.sidemenu {
  margin: 0 !important;
  padding-top: 0 !important;
}

.sidebar-user-panel {
  box-sizing: border-box;
  width: 100% !important;
  height: 116px !important;
  min-height: 116px !important;
  max-height: 116px !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  background: #ffffff;
  overflow: hidden !important;
  position: relative;
  top: 0 !important;
  vertical-align: top;
}

.sidemenu-container .sidemenu > li.sidebar-user-panel {
  display: block !important;
  box-sizing: border-box !important;
  height: 104px !important;
  min-height: 104px !important;
  max-height: 104px !important;
  margin: 0 !important;
  padding: 8px 18px !important;
  overflow: hidden !important;
}

.sidebar-user-panel .user-panel {
    box-sizing: border-box;
    width: 100% !important;
    height: 92px !important;
    min-height: 0 !important;
    max-height: 92px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    float: none !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin-top: -31px !important;
}

.sidebar-user-panel .user-panel .pull-left {
  float: none !important;
}

.sidebar-user-panel .image {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: 0 !important;
  position: static !important;
}

.sidebar-avatar {
  display: block;
  color: #aeb7c2;
  font-size: 52px;
  line-height: 58px;
}

.sidebar-user-panel .info {
  min-width: 0;
  margin-left: 18px;
  padding: 0 !important;
  margin-top: 0 !important;
  position: static !important;
}

.sidebar-user-panel .info p {
  margin: 0 0 8px;
  overflow: hidden;
  color: #263238;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-panel .info span {
  color: #263238;
  font-size: 14px;
  white-space: nowrap;
}

.user-online {
  margin-right: 6px;
  color: #22c55e;
  font-size: 8px;
  vertical-align: middle;
}

.lead-login-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .16), transparent 28%),
    linear-gradient(135deg, #263238 0%, #303f9f 100%);
}

.lead-login-shell {
  width: min(1040px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
}

.lead-login-brand,
.lead-login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lead-login-brand {
  padding: 64px;
  color: #fff;
}

.lead-login-logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 20px;
  background: rgba(255, 255, 255, .12);
  font-size: 40px;
}

.lead-login-eyebrow {
  margin: 0 0 4px;
  color: #b9c3ff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.lead-login-brand h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 600;
  line-height: 1;
}

.lead-login-brand > p:last-child {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 17px;
  line-height: 1.75;
}

.lead-login-card {
  padding: 58px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(7, 13, 36, .35);
}

.lead-login-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 34px;
}

.lead-login-heading > .material-icons {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eef0ff;
  color: var(--lead-primary);
}

.lead-login-heading h2 {
  margin: 0 0 4px;
  color: var(--lead-ink);
  font-size: 26px;
  font-weight: 600;
}

.lead-login-heading p,
.lead-login-help {
  margin: 0;
  color: #7b8494;
  font-size: 13px;
}

.lead-field {
  margin-bottom: 22px;
}

.lead-field label {
  display: block;
  margin-bottom: 8px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 500;
}

.lead-input {
  display: flex;
  align-items: center;
  border: 1px solid #dce0e8;
  border-radius: 10px;
  background: #fafbfc;
  transition: border-color .2s, box-shadow .2s;
}

.lead-input:focus-within {
  border-color: var(--lead-primary);
  box-shadow: 0 0 0 3px rgba(63, 81, 181, .12);
}

.lead-input i {
  padding-left: 16px;
  color: #929aaa;
  font-size: 20px;
}

.lead-input input {
  width: 100%;
  height: 52px;
  border: 0;
  outline: 0;
  padding: 0 16px 0 12px;
  background: transparent;
  color: var(--lead-ink);
  font-family: inherit;
}

.lead-login-button {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--lead-primary);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: background .2s, transform .2s;
}

.lead-login-button:hover {
  background: var(--lead-primary-dark);
  transform: translateY(-1px);
}

.lead-login-button:disabled {
  cursor: wait;
  opacity: .7;
}

.lead-login-help {
  margin-top: 26px;
  text-align: center;
}

.lead-login-card .alert {
  margin: -12px 0 24px;
}

@media (max-width: 800px) {
  .lead-login-shell {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  .lead-login-brand {
    padding: 36px 24px;
  }

  .lead-login-logo {
    margin-bottom: 20px;
  }

  .lead-login-card {
    padding: 38px 28px;
  }
}
