body.ufe-auth-page {
  background:
    linear-gradient(135deg, rgba(41, 70, 158, 0.14), transparent 32%),
    linear-gradient(315deg, rgba(91, 122, 214, 0.16), transparent 34%),
    #f4f6f8;
  color: #13202f;
}

body.ufe-auth-page .container {
  max-width: 980px;
}

.ufe-auth-wrap,
.wrap:has(.ufe-auth) {
  margin-top: 42px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(19, 32, 47, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(19, 32, 47, 0.14);
}

.ufe-auth-wrap .header,
.wrap:has(.ufe-auth) .header {
  display: none;
}

.ufe-auth {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1fr);
  min-height: 620px;
}

.ufe-auth__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  background:
    linear-gradient(145deg, rgba(43, 73, 164, 0.96), rgba(16, 35, 77, 0.98)),
    #2949a4;
  color: #fff;
}

.ufe-auth__brand::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.ufe-auth__mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 118px;
  height: 148px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(12, 26, 68, 0.18);
}

.ufe-auth__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ufe-auth__eyebrow,
.ufe-auth__kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ufe-auth__eyebrow {
  color: #dce7ff;
}

.ufe-auth__kicker {
  color: #2949a4;
}

.ufe-auth__brand h1 {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: auto 0 18px;
  font-size: 2.55rem;
  line-height: 1.05;
  font-weight: 800;
}

.ufe-auth__copy {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.ufe-auth__status {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ufe-auth__status span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
}

.ufe-auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px;
  background: #fff;
}

.ufe-auth__panel-head {
  margin-bottom: 24px;
}

.ufe-auth__panel h2 {
  margin: 0;
  color: #13202f;
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
}

.ufe-auth__form p {
  margin: 0 0 18px;
}

.ufe-auth__form label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}

.ufe-auth__form input[type="text"],
.ufe-auth__form input[type="email"],
.ufe-auth__form input[type="password"] {
  min-height: 50px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: none;
  color: #13202f;
  background: #f8fafc;
}

.ufe-auth__form input:focus {
  outline: 3px solid rgba(43, 73, 164, 0.16);
  border-color: #2949a4;
  background: #fff;
}

.ufe-auth .submit {
  margin-top: 24px;
}

.ufe-auth .button {
  min-height: 52px;
  border-radius: 8px;
  background: #2949a4;
  box-shadow: 0 12px 24px rgba(43, 73, 164, 0.24);
  color: #fff;
  font-weight: 800;
}

.ufe-auth .button:hover {
  background: #162b72;
}

.ufe-auth .button.button-outline {
  border: 1px solid #2949a4;
  background: #fff;
  box-shadow: none;
  color: #2949a4;
}

.ufe-auth .button.button-outline:hover {
  border-color: #162b72;
  background: #162b72;
  color: #fff;
}

.ufe-auth__oidc {
  margin-top: 18px;
}

.ufe-auth__help {
  margin: 6px 0 0;
}

.ufe-auth__help a {
  color: #2949a4;
  font-weight: 700;
  text-decoration-color: rgba(43, 73, 164, 0.28);
}

.ufe-home__copy {
  margin: 0 0 24px;
  color: #475569;
  line-height: 1.55;
}

.ufe-home__actions {
  display: grid;
  gap: 12px;
}

.ufe-home__actions .button {
  width: 100%;
}

.ufe-auth .error {
  display: block;
  padding: 12px 14px;
  border: 1px solid rgba(200, 16, 46, 0.2);
  border-radius: 8px;
  background: rgba(200, 16, 46, 0.08);
  color: #9f1239;
  font-weight: 700;
}

.ufe-auth input[name="totp_code"] {
  min-height: 64px;
  letter-spacing: 0;
  font-size: 2rem;
  font-weight: 800;
}

body.ufe-auth-page footer.container {
  max-width: 980px;
}

@media screen and (max-width: 760px) {
  body.ufe-auth-page .container {
    margin-top: 0;
  }

  .ufe-auth-wrap,
  .wrap:has(.ufe-auth) {
    border-radius: 0;
    box-shadow: none;
  }

  .ufe-auth {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ufe-auth__brand {
    min-height: 300px;
    padding: 28px;
  }

  .ufe-auth__brand h1 {
    margin-top: 32px;
    font-size: 2rem;
  }

  .ufe-auth__brand::after {
    width: 104px;
    height: 104px;
  }

  .ufe-auth__panel {
    padding: 30px 24px 34px;
  }

  .ufe-auth__panel h2 {
    font-size: 1.65rem;
  }
}
