html,
body {
  min-height: 100%;
}

body {
  background: #f7fbff;
  color: #152646;
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  left: 0;
  width: 390px;
  height: 560px;
  background:
    linear-gradient(to top, rgba(214, 232, 248, 0.56) 96px, transparent 96px),
    linear-gradient(to top, rgba(214, 232, 248, 0.5) 182px, transparent 182px) 28px bottom / 70px 222px no-repeat,
    linear-gradient(to top, rgba(214, 232, 248, 0.7) 306px, transparent 306px) 96px bottom / 104px 348px no-repeat,
    repeating-linear-gradient(to right, transparent 0 18px, rgba(255, 255, 255, 0.42) 18px 26px, transparent 26px 44px) 118px 242px / 64px 116px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 22px, rgba(255, 255, 255, 0.28) 22px 30px, transparent 30px 50px) 118px 242px / 64px 116px no-repeat,
    linear-gradient(to top, rgba(214, 232, 248, 0.44) 142px, transparent 142px) 218px bottom / 76px 184px no-repeat,
    linear-gradient(to top, rgba(214, 232, 248, 0.32) 88px, transparent 88px) 300px bottom / 88px 118px no-repeat;
  opacity: 0.82;
}

body::after {
  right: 0;
  width: 390px;
  height: 560px;
  background:
    linear-gradient(to top, rgba(214, 232, 248, 0.52) 96px, transparent 96px),
    linear-gradient(to top, rgba(214, 232, 248, 0.32) 120px, transparent 120px) 0 bottom / 82px 158px no-repeat,
    linear-gradient(to top, rgba(214, 232, 248, 0.44) 176px, transparent 176px) 92px bottom / 74px 216px no-repeat,
    linear-gradient(to top, rgba(214, 232, 248, 0.66) 310px, transparent 310px) 194px bottom / 104px 352px no-repeat,
    repeating-linear-gradient(to right, transparent 0 18px, rgba(255, 255, 255, 0.4) 18px 26px, transparent 26px 44px) 216px 244px / 64px 116px no-repeat,
    repeating-linear-gradient(to bottom, transparent 0 22px, rgba(255, 255, 255, 0.28) 22px 30px, transparent 30px 50px) 216px 244px / 64px 116px no-repeat,
    linear-gradient(to top, rgba(214, 232, 248, 0.36) 140px, transparent 140px) 310px bottom / 72px 182px no-repeat;
  opacity: 0.76;
}

.container {
  width: 100%;
  min-height: 100vh;
  padding: 0 20px;
}

.container .content,
.container-fluid .content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 18px 0 16px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

#login {
  width: 440px;
  max-width: 100%;
  margin: 0 auto;
}

#login *,
#login *::before,
#login *::after {
  box-sizing: border-box;
}

#login > h1 {
  display: block;
  width: 420px;
  max-width: 100%;
  height: 112px;
  margin: 0 auto 8px;
  overflow: hidden;
  background: url("../images/layout_set_logo.png") center / contain no-repeat;
  text-indent: -9999px;
}

#login > h1 a {
  display: block;
  height: 100%;
}

#login form.login-card {
  width: 100%;
  margin: 0;
  padding: 28px 34px 24px;
  background: #ffffff;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 30, 48, 0.14);
}

.login-mark {
  position: relative;
  width: 48px;
  height: 44px;
  margin: 0 auto 10px;
  color: #243756;
  text-align: center;
}

.login-mark > .fa-shield {
  font-size: 42px;
  line-height: 44px;
}

.login-mark span {
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #28b97b;
  color: #ffffff;
  font-size: 10px;
  line-height: 14px;
}

#login h2 {
  margin: 0;
  color: #142447;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.login-subtitle {
  margin: 12px 0 24px;
  color: #34496e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

#login .alert {
  margin: 0 0 16px;
  border-radius: 6px;
  font-size: 13px;
}

#login .fields {
  padding: 0;
}

#login .form-group {
  margin-bottom: 18px;
}

#login label {
  display: block;
  margin: 0 0 8px;
  color: #283d64;
  font-size: 13px;
  font-weight: 700;
}

.input-shell {
  position: relative;
}

.input-shell .input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  width: 18px;
  color: #50627f;
  font-size: 18px;
  text-align: center;
  transform: translateY(-50%);
}

#login input.form-control {
  width: 100%;
  height: 40px;
  padding: 8px 44px 8px 44px;
  border: 1px solid #cbd6e5;
  border-radius: 4px;
  background: #ffffff;
  color: #142447;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: inset 0 1px 1px rgba(15, 30, 48, 0.04);
  opacity: 1;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#login input.form-control:focus {
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.14);
  outline: 0;
}

#login input.form-control::placeholder {
  color: #a9b6c8;
  font-weight: 600;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  z-index: 3;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #465a7a;
  font-size: 16px;
  line-height: 26px;
  text-align: center;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus {
  color: #0c4fd9;
  outline: 0;
}

.forgot-password {
  display: block;
  margin: -2px 0 18px;
  color: #2e6dea;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  text-decoration: none;
}

.forgot-password:hover,
.forgot-password:focus {
  color: #0c4fd9;
  text-decoration: underline;
}

#login .actions {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#login .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

#login .btn i {
  margin-right: 0;
}

#login .btn-primary,
#login .btn-primary:focus {
  border-color: #0649da;
  background: #064fe0;
  color: #ffffff;
  box-shadow: 0 4px 9px rgba(6, 79, 224, 0.28);
}

#login .btn-primary:hover {
  border-color: #043fbc;
  background: #0449ca;
}

#login .btn-primary[disabled] {
  opacity: 0.75;
}

#login .btn-cancel,
#login .btn-cancel:focus {
  margin-top: 10px;
  border: 1px solid #d0d9e8;
  background: #ffffff;
  color: #2360dc;
  box-shadow: none;
}

#login .btn-cancel:hover {
  border-color: #b7c5da;
  background: #f7faff;
  color: #0c4fd9;
}

.login-notice {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 13px 14px;
  border: 1px solid #b7d3fb;
  border-radius: 4px;
  background: #eaf4ff;
  color: #1f478b;
}

.login-notice .fa {
  flex: 0 0 auto;
  color: #2c72ff;
  font-size: 22px;
  line-height: 22px;
}

.login-notice p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.oidc-login {
  margin: 14px 0 0;
  text-align: center;
}

.oidc-login a {
  color: #2360dc;
  font-weight: 700;
}

.login-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #596985;
  font-size: 13px;
  font-weight: 700;
}

.login-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-footer img {
  width: 34px;
  height: auto;
  max-height: 30px;
}

.login-footer small {
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 520px) {
  body::before,
  body::after {
    opacity: 0.45;
  }

  .container {
    padding: 0 14px;
  }

  .container .content,
  .container-fluid .content {
    padding-top: 8px;
  }

  #login form.login-card {
    padding: 24px 24px 22px;
  }

  #login h2 {
    font-size: 24px;
  }
}
