body.task-login {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: #17212c;
  background: #fbfaf5;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.task-login #layout {
  min-height: 100vh;
  overflow: hidden;
  background: #fbfaf5 url("../images/page-background.png") center / cover no-repeat;
}

body.task-login .oid-login-shell {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

body.task-login .oid-brand-rail {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  padding: 108px 30px 40px;
  border-right: 1px solid rgba(26, 96, 103, 0.22);
}

body.task-login .oid-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #15212c;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

body.task-login .oid-brand-lockup img {
  width: 64px;
  height: 48px;
  object-fit: contain;
}

body.task-login .oid-login-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(410px, 1.05fr) minmax(540px, 1.25fr);
  min-width: 0;
  min-height: 100vh;
}

body.task-login .oid-login-form {
  position: relative;
  left: 8px;
  z-index: 4;
  align-self: center;
  justify-self: center;
  width: min(410px, calc(100% - 72px));
  margin: 20px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.task-login .oid-login-form > h2 {
  margin: 0 0 38px;
  color: #17212c;
  font-size: clamp(40px, 2.9vw, 44px);
  font-weight: 680;
  line-height: 1;
  letter-spacing: -0.045em;
}

body.task-login .oid-login-form table,
body.task-login .oid-login-form tbody,
body.task-login .oid-login-form tr,
body.task-login .oid-login-form td {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.task-login .oid-login-form td.title {
  margin: 0 0 10px;
  color: #1d2933;
  font-size: 16px;
  font-weight: 560;
  line-height: 1.4;
  text-align: left;
}

body.task-login .oid-login-form td.input {
  margin: 0 0 26px;
}

body.task-login .oid-login-form .form-control {
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 20px;
  color: #17212c;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid #bec8c7;
  border-radius: 6px;
  box-shadow: none;
  font-size: 16px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

body.task-login .oid-login-form .form-control::placeholder {
  color: #99a2a8;
}

body.task-login .oid-login-form .form-control:hover {
  border-color: #879c9d;
  background: rgba(255, 255, 255, 0.78);
}

body.task-login .oid-login-form .form-control:focus-visible {
  border-color: #0a6670;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 102, 112, 0.14);
}

body.task-login .oid-login-form .formbuttons {
  margin: 4px 0 0;
}

body.task-login .oid-login-form #rcmloginsubmit {
  width: 100%;
  min-height: 56px;
  margin: 0;
  color: #fff;
  background: #075d66;
  border: 1px solid #075d66;
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 650;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

body.task-login .oid-login-form #rcmloginsubmit:hover {
  background: #064f57;
  border-color: #064f57;
  box-shadow: 0 10px 24px rgba(4, 64, 71, 0.14);
}

body.task-login .oid-login-form #rcmloginsubmit:active {
  transform: translateY(1px);
}

body.task-login .oid-login-form #rcmloginsubmit:focus-visible {
  outline: 3px solid rgba(7, 93, 102, 0.26);
  outline-offset: 3px;
}

body.task-login .oid-connection-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 24px 0 0;
  color: #6f7f82;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

body.task-login .oid-connection-note img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

body.task-login .oid-login-footer {
  height: 0;
  margin: 0;
  overflow: hidden;
}

body.task-login .oid-brand-message {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
}

body.task-login .oid-brand-copy {
  position: relative;
  z-index: 2;
  width: min(480px, calc(100% - 72px));
  margin: clamp(170px, 22vh, 230px) 0 0 112px;
}

body.task-login .oid-brand-copy h2 {
  margin: 0;
  color: #17212c;
  font-size: clamp(54px, 4.4vw, 64px);
  font-weight: 680;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

body.task-login .oid-brand-copy p {
  max-width: 430px;
  margin: 28px 0 0;
  color: #5c7078;
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.45;
  letter-spacing: -0.018em;
}

body.task-login .oid-glass-ribbon {
  position: absolute;
  right: -12%;
  bottom: 6%;
  z-index: 1;
  width: min(1100px, 140%);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

body.task-login #messagestack {
  z-index: 20;
}

body:not(.task-login) #taskmenu a.about {
  display: none !important;
}

@media (max-width: 1040px) {
  body.task-login .oid-login-shell {
    grid-template-columns: 158px minmax(0, 1fr);
  }

  body.task-login .oid-brand-rail {
    padding-right: 20px;
    padding-left: 20px;
  }

  body.task-login .oid-brand-lockup {
    font-size: 19px;
  }

  body.task-login .oid-login-workspace {
    grid-template-columns: minmax(360px, 0.9fr) minmax(400px, 1.1fr);
  }

  body.task-login .oid-brand-copy {
    margin-left: 44px;
  }
}

@media (max-width: 820px) {
  body.task-login #layout {
    min-height: 100dvh;
    overflow: auto;
  }

  body.task-login .oid-login-shell {
    display: block;
    min-height: 100dvh;
    overflow: visible;
  }

  body.task-login .oid-brand-rail {
    min-height: 0;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(26, 96, 103, 0.18);
  }

  body.task-login .oid-brand-lockup {
    flex-direction: row;
    justify-content: flex-start;
    font-size: 20px;
  }

  body.task-login .oid-brand-lockup img {
    width: 44px;
    height: 36px;
  }

  body.task-login .oid-login-workspace {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 85px);
    padding: 56px 24px 48px;
  }

  body.task-login .oid-login-form {
    left: 0;
    align-self: center;
    width: min(100%, 460px);
    margin: 0;
  }

  body.task-login .oid-login-form > h2 {
    margin-bottom: 32px;
    font-size: 42px;
  }

  body.task-login .oid-brand-message {
    width: min(100%, 620px);
    min-height: 300px;
    margin: 64px auto 0;
  }

  body.task-login .oid-brand-copy {
    width: min(100%, 460px);
    margin: 0;
  }

  body.task-login .oid-brand-copy h2 {
    font-size: clamp(46px, 12vw, 64px);
  }

  body.task-login .oid-brand-copy p {
    font-size: 18px;
  }

  body.task-login .oid-glass-ribbon {
    right: -170px;
    bottom: -170px;
    width: 560px;
    opacity: 0.72;
  }
}
