html.login-layout {
  overflow-x: hidden;
  overflow-y: auto;
}

body.login-layout {
  min-height: 100%;
  overflow: visible;
}

#Login {
  --login-navy: #123f78;
  --login-blue: #0b63ce;
  --login-blue-light: #2583dd;
  --login-ink: #17233a;
  --login-muted: #687892;
  --login-border: #d9e2ef;
  --login-surface: #f3f6fb;
  background: var(--login-surface);
  color: var(--login-ink);
  display: grid;
  grid-template-columns: minmax(480px, 1.15fr) minmax(440px, 0.85fr);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.login__visual {
  background: linear-gradient(145deg, var(--login-navy), var(--login-blue));
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.login__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.login__visual-overlay {
  background:
    linear-gradient(115deg, rgba(8, 43, 88, 0.82) 0%, rgba(12, 76, 145, 0.52) 54%, rgba(26, 118, 202, 0.18) 100%);
  inset: 0;
  position: absolute;
}

.login__visual-overlay::before,
.login__visual-overlay::after {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
  position: absolute;
}

.login__visual-overlay::before {
  height: 340px;
  right: -115px;
  top: -120px;
  width: 340px;
}

.login__visual-overlay::after {
  bottom: -190px;
  height: 480px;
  left: -150px;
  width: 480px;
}

.login__visual-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  padding: clamp(38px, 5vw, 72px);
  position: relative;
  z-index: 1;
}

.login__product-brand {
  align-items: center;
  display: flex;
  gap: 18px;
}

.login__image__logo__spa {
  height: auto;
  margin: 0;
  width: 82px;
}

.login__product-brand span {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.45;
  max-width: 175px;
  padding-left: 18px;
  text-transform: uppercase;
}

.login__welcome {
  margin: auto 0;
  max-width: 620px;
  padding: 72px 0;
}

.login__eyebrow {
  color: #a9d5ff;
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.login__welcome h1 {
  color: #fff;
  font-size: clamp(38px, 4.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 24px;
}

.login__welcome p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
  max-width: 540px;
}

.login__security-note {
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  font-size: 13px;
  gap: 10px;
}

.login__security-note i {
  font-size: 18px;
}

.login__access {
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 131, 221, 0.1), transparent 34%),
    var(--login-surface);
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 44px clamp(28px, 5vw, 80px);
}

.login__access-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  max-width: 470px;
  width: 100%;
}

.login__tenant-logo {
  align-items: center;
  background: #e8f2ff;
  border-radius: 13px;
  display: flex;
  flex: 0 0 50px;
  height: 50px;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  text-align: center;
}

.login__tenant-logo img {
  height: auto !important;
  max-height: 42px;
  max-width: 42px;
  object-fit: contain;
  width: auto !important;
}

.login__card {
  background: #fff;
  border: 1px solid rgba(202, 214, 231, 0.8);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(24, 49, 83, 0.12);
  padding: 42px;
  position: relative;
  width: 100%;
}

.login__card-header {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.login__brand {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  width: 100%;
}

.login__brand-copy {
  flex: 1;
  min-width: 0;
}

.login__brand-text {
  min-width: 0;
}

.login__card-icon {
  align-items: center;
  background: #e8f2ff;
  border-radius: 13px;
  color: var(--login-blue);
  display: flex;
  flex: 0 0 46px;
  font-size: 25px;
  height: 46px;
  justify-content: center;
}

.login__brand-text span {
  color: var(--login-blue);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 1px 0 4px;
  text-transform: uppercase;
}

.login__brand-text .login__institution-name {
  margin-bottom: 0;
  overflow-wrap: break-word;
  white-space: normal;
}

.login__account-intro {
  margin: 8px 0 28px;
}

.login__account-intro h2 {
  color: var(--login-ink);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.login__account-intro p {
  color: var(--login-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 7px 0 0;
}

.login__content {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.login__form__link__back {
  align-items: center;
  color: var(--login-blue);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 7px;
  margin-bottom: 25px;
  text-decoration: none;
}

.login__form__link__back:hover,
.login__form__link__back:focus {
  color: var(--login-navy);
  text-decoration: none;
}

.login__form__title {
  color: var(--login-ink);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 18px;
}

.login__form__description {
  color: var(--login-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: -8px 0 22px;
}

.login__field {
  margin-bottom: 18px;
}

.login__field--password {
  position: relative;
}

.login__label-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.login__label-row a {
  color: var(--login-blue);
  font-size: 12px;
  font-weight: 500;
}

.login__password-recovery {
  color: var(--login-blue);
  font-size: 12px;
  font-weight: 500;
  position: absolute;
  right: 0;
  top: 0;
}

.login__password-recovery:hover,
.login__password-recovery:focus {
  color: var(--login-navy);
}

.login__form__label {
  color: #40516c;
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 7px;
}

.login__input-wrapper {
  align-items: center;
  display: flex;
  position: relative;
}

.login__input-wrapper > i {
  color: #91a1b8;
  font-size: 17px;
  left: 15px;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.login__input {
  background: #f8fafc;
  border: 1px solid var(--login-border);
  border-radius: 10px;
  color: var(--login-ink);
  display: block;
  font-size: 14px;
  height: 46px;
  line-height: 1.5;
  padding: 0 44px 0 43px;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.login__input::placeholder {
  color: #9aa8ba;
}

.login__input:hover {
  border-color: #b9c7d9;
}

.login__input:focus {
  background: #fff;
  border-color: var(--login-blue-light);
  box-shadow: 0 0 0 3px rgba(37, 131, 221, 0.14);
  outline: 0;
}

.login__input-wrapper:focus-within > i {
  color: var(--login-blue);
}

.login__password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #718198;
  cursor: pointer;
  display: flex;
  font-size: 18px;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 7px;
  width: 34px;
}

.login__password-toggle:hover,
.login__password-toggle:focus {
  background: #eaf2fc;
  color: var(--login-blue);
  outline: 0;
}

.login__form__button {
  align-items: center;
  background: linear-gradient(135deg, var(--login-blue), #177adc);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 9px 20px rgba(11, 99, 206, 0.2);
  color: #fff !important;
  display: flex;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 700 !important;
  height: 46px;
  justify-content: center;
  margin-top: 5px;
  text-decoration: none !important;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  width: 100%;
}

.login__form__button:hover,
.login__form__button:focus {
  background: linear-gradient(135deg, #095ab9, #126dcc);
  box-shadow: 0 12px 25px rgba(11, 99, 206, 0.28);
  color: #fff;
  outline: 0;
  transform: translateY(-1px);
}

.login__form__button:active {
  box-shadow: 0 5px 12px rgba(11, 99, 206, 0.2);
  transform: translateY(0);
}

.login__action-content--provider {
  align-items: center;
  display: flex;
  width: 100%;
}

.login__loading-content {
  align-items: center;
  display: none;
  gap: 9px;
  justify-content: center;
}

[data-login-action].is-loading {
  cursor: wait;
  opacity: 0.9;
  pointer-events: none;
  transform: none;
}

[data-login-action].is-loading .login__action-content {
  display: none;
}

[data-login-action].is-loading .login__loading-content {
  display: flex;
}

.login__loading-spinner {
  animation: login-loading-spin 0.75s linear infinite;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-right-color: transparent;
  display: inline-block;
  height: 16px;
  width: 16px;
}

.login__token-response {
  color: var(--login-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 12px 0 0;
  min-height: 18px;
  text-align: center;
}

.login__token-response--error {
  color: #b42318;
}

@keyframes login-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.login__divider {
  align-items: center;
  color: #8a98ac;
  display: flex;
  font-size: 11px;
  gap: 12px;
  margin: 26px 0 16px;
  text-transform: uppercase;
}

.login__divider::before,
.login__divider::after {
  background: #e2e8f1;
  content: "";
  flex: 1;
  height: 1px;
}

.login__authenticator-buttons {
  display: grid;
  gap: 9px;
}

.login__btn {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #dfe6f0;
  border-radius: 10px;
  color: #34455f;
  cursor: pointer;
  display: flex;
  font-family: 'Roboto', sans-serif;
  height: 46px;
  padding: 0 13px;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.login__btn:hover,
.login__btn:focus {
  background: #fff;
  border-color: #abc6e7;
  box-shadow: 0 5px 14px rgba(33, 73, 118, 0.09);
  color: var(--login-blue);
  outline: 0;
  text-decoration: none;
}

.login__btn__icon {
  align-items: center;
  display: flex;
  flex: 0 0 30px;
  justify-content: flex-start;
}

.login__btn__content {
  align-items: center;
  display: flex;
  flex: 1;
  min-width: 0;
}

.login__btn__title {
  color: inherit;
  font-size: 13px;
  font-weight: 600 !important;
  letter-spacing: 0;
}

.login__btn__arrow {
  color: #8fa0b7;
  font-size: 18px;
}

.login__alert,
.login__form .alert {
  background: #fff8e6;
  border: 1px solid #f3dca0;
  border-radius: 9px;
  color: #705716;
  font-size: 12px;
  line-height: 1.5;
  padding: 11px 13px;
}

.login__footer {
  align-items: center;
  color: #8390a4;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  gap: 2px;
  margin-top: 22px;
  text-transform: uppercase;
}

.login__footer img {
  height: 132px;
  margin: -43px 0 -44px;
  object-fit: contain;
  width: 132px;
}

@media (max-width: 1120px) {
  #Login {
    display: block;
    min-height: 100vh;
    overflow: visible;
  }

  .login__visual {
    min-height: 285px;
  }

  .login__visual-content {
    min-height: 285px;
    padding: 32px clamp(28px, 7vw, 58px) 78px;
  }

  .login__welcome {
    padding: 35px 0 10px;
  }

  .login__welcome h1 {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .login__welcome p {
    font-size: 14px;
  }

  .login__security-note {
    display: none;
  }

  .login__access {
    margin-top: 0;
    min-height: calc(100vh - 231px);
    padding: 24px clamp(20px, 4vw, 36px) 32px;
    position: relative;
    z-index: 2;
  }

}

@media (max-width: 560px) {
  .login__visual {
    min-height: 220px;
  }

  .login__visual-content {
    min-height: 220px;
    padding: 26px 22px 68px;
  }

  .login__image__logo__spa {
    width: 66px;
  }

  .login__product-brand span {
    display: none;
  }

  .login__welcome {
    padding: 24px 0 0;
  }

  .login__eyebrow,
  .login__welcome p {
    display: none;
  }

  .login__welcome h1 {
    font-size: 30px;
    max-width: 320px;
  }

  .login__access {
    margin-top: 0;
    min-height: calc(100vh - 175px);
    padding: 18px 18px 24px;
  }

  .login__card {
    border-radius: 19px;
    padding: 28px 22px;
  }

  .login__account-intro {
    margin: 8px 0 22px;
  }

  .login__account-intro h2 {
    font-size: 22px;
  }

  .login__tenant-logo {
    flex-basis: 44px;
    height: 44px;
  }

  .login__tenant-logo img {
    max-height: 36px;
    max-width: 36px;
  }

  .login__brand-text .login__institution-name {
    line-height: 1.35;
    margin-bottom: 0;
  }

  .login__footer {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login__input,
  .login__btn,
  .login__form__button {
    transition: none;
  }

  .login__loading-spinner {
    animation-duration: 1.5s;
  }
}
