.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(84, 150, 236, 0.1), transparent 28rem),
    #f4f7fb;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.login-shell .authentication-wrapper {
  width: 100%;
  min-height: auto;
  padding: 0;
}

.login-shell .authentication-wrapper.authentication-basic .authentication-inner {
  width: 100%;
  max-width: 1040px;
}

.login-shell .authentication-inner:before,
.login-shell .authentication-inner:after {
  content: none;
}

.login-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
  overflow: hidden;
  min-height: 480px;
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 4rem rgba(20, 42, 69, 0.14);
}

.login-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: #fff;
  background: linear-gradient(145deg, #102c4a 0%, #145b91 100%);
}

.login-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.login-brand-mark {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.16);
}

.login-brand-mark img {
  width: 2.15rem;
  height: 2.15rem;
}

.login-partner-logo {
  display: block;
  flex: 0 0 auto;
  width: 10.5rem;
  height: 3.75rem;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  object-position: left center;
  box-shadow: none;
}

.login-brand-name {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.login-brand-kicker {
  margin: 0.15rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-brand-copy {
  max-width: 20rem;
  margin: 3.5rem 0;
}

.login-brand-copy h1 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
}

.login-brand-copy p,
.login-brand-footer {
  color: rgba(255, 255, 255, 0.76);
}

.login-brand-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.login-brand-footer {
  margin: 0;
  font-size: 0.8rem;
}

.login-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.login-label {
  margin-bottom: 0.9rem;
  color: #3674aa;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-content h2 {
  margin-bottom: 0.65rem;
  color: #24364b;
  font-size: 1.8rem;
  font-weight: 700;
}

.login-description {
  margin-bottom: 1.35rem;
  color: #68798c;
  line-height: 1.65;
}

.login-google-wrap {
  position: relative;
}

.login-hover-tooltip {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  width: max-content;
  max-width: min(24rem, calc(100vw - 3rem));
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.55rem;
  background: #1d2d40;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 0.5rem 1.25rem rgba(20, 42, 69, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 0.25rem);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.login-hover-tooltip::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #1d2d40;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.login-google-wrap:hover .login-hover-tooltip,
.login-google-wrap:focus-within .login-hover-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.login-google-button {
  min-height: 3.25rem;
  border: 1px solid #d6dee8;
  border-radius: 0.65rem;
  background: #fff;
  color: #26384b;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 0.2rem 0.6rem rgba(30, 55, 80, 0.05);
}

.login-google-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.login-google-button:not(:disabled) {
  color: #26384b;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.login-google-button:not(:disabled):hover {
  border-color: #9eafc2;
  box-shadow: 0 0.4rem 1rem rgba(30, 55, 80, 0.1);
  color: #1d2e40;
  transform: translateY(-1px);
}

.login-google-button svg {
  flex: 0 0 auto;
}

.login-setup-note.login-ready-note {
  border-color: #cfe2f3;
  background: #f0f7fd;
  color: #315d7f;
}

.login-setup-note.login-error-note {
  border-color: #efc7c7;
  background: #fff5f5;
  color: #842d2d;
}

.login-setup-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #f1dfb8;
  border-radius: 0.65rem;
  background: #fffaf0;
  color: #775a25;
  font-size: 0.82rem;
  line-height: 1.5;
}

.login-domain-note {
  margin: 1.5rem 0 0;
  color: #7a8796;
  font-size: 0.82rem;
  text-align: center;
}

.login-content .login-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0 !important;
  padding: 0.45rem 0;
  color: #8996a5;
  font-size: 0.75rem;
  white-space: nowrap;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: #e2e8ef;
}

.login-password-form label {
  display: block;
  margin: 0.75rem 0 0.35rem;
  color: #45586d;
  font-size: 0.8rem;
  font-weight: 650;
}

.login-password-form .form-control {
  min-height: 2.9rem;
  border-color: #d6dee8;
  border-radius: 0.65rem;
  background: #fff;
  color: #26384b;
}

.login-password-form .form-control:focus {
  border-color: #7aa7d7;
  box-shadow: 0 0 0 0.2rem rgba(53, 116, 170, 0.13);
}

.login-password-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.1rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 0.65rem;
  background: #155f9f;
  color: #fff;
  font-weight: 650;
}

.login-password-button i {
  font-size: 1.25rem;
  line-height: 1;
}

.login-password-button:hover,
.login-password-button:focus {
  background: #104f86;
  color: #fff;
}

.login-existing-note {
  margin: 0.8rem 0 0;
  color: #7a8796;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.login-method-disabled {
  margin: 1rem 0 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid #e2e8ef;
  border-radius: 0.65rem;
  background: #f7f9fc;
  color: #65778b;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 767.98px) {
  .login-shell {
    padding: 1rem;
  }

  .login-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .login-brand-panel {
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .login-partner-logo {
    width: 9rem;
    height: 3.25rem;
    padding: 0;
  }

  .login-brand-copy {
    margin: 0.5rem 0 0;
  }

  .login-brand-copy h1 {
    font-size: 1.8rem;
  }

  .login-brand-copy p,
  .login-brand-footer {
    display: none;
  }

  .login-content {
    padding: 2rem 1.5rem;
  }
}
