.cloud-login {
  --login-ink: #152439;
  --login-blue: #214eca;
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(12px, 1.15vw, 26px);
  background: #fff;
  color: var(--login-ink);
}
.login-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 4vw, 88px);
  border-radius: 14px;
  background: #eae5d9 url('/live/login-tape.jpg') center / cover no-repeat;
}
.login-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: #18283c;
}
.login-signature { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 680; }
.login-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: #214eca; color: white; }
.login-mark svg { width: 20px; height: 20px; }
.login-wordmark {
  margin: clamp(14px, 2vh, 26px) 0 0 -.04em;
  font: 500 clamp(54px, 6.4vw, 148px)/.98 'Baskerville', 'Iowan Old Style', 'Times New Roman', serif;
  letter-spacing: -.055em;
}
#main.login-main {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 74px clamp(32px, 5vw, 112px);
}
.login-desks {
  position: absolute;
  top: 4px;
  right: clamp(12px, 2vw, 40px);
  display: flex;
  gap: 4px;
}
.login-desks a, .login-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #495b76;
  font-size: 13px;
}
.login-desks a:hover, .login-reveal:hover { color: var(--login-blue); background: #f1f4fd; }
.login-desks svg { width: 16px; height: 16px; }
.login-fields { width: min(100%, clamp(360px, 27vw, 480px)); }
.login-fields h1 {
  font-size: clamp(32px, 2.6vw, 48px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.25;
}
.login-destination {
  margin: 12px 0 clamp(28px, 4.5vh, 52px);
  color: #58677b;
  font-size: 15px;
}
.login-fields label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 620; }
.login-input + label { margin-top: 23px; }
.login-input {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 4px 0 15px;
  border: 1px solid #bdc7d2;
  border-radius: 8px;
  background: white;
}
.login-input > svg { width: 17px; height: 17px; color: #64758b; }
.login-input input, .login-input input:focus {
  flex: 1;
  min-width: 0;
  width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--login-ink);
  font-size: 16px;
}
.login-input input::placeholder { color: #748094; }
.login-input:focus-within { border-color: var(--login-blue); box-shadow: 0 0 0 3px #214eca17; }
.login-input:has([aria-invalid="true"]) { border-color: #b7524f; }
.login-reveal { min-width: 48px; }
.login-notice, #login-error:not(:empty) {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
}
.login-notice { margin: -12px 0 20px; background: #edf3fc; color: #244574; }
#login-error:not(:empty) { margin-top: 12px; background: #fff2ef; color: #923930; }
.login-submit {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 52px;
  margin-top: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--login-blue);
  color: white;
  font-size: 16px;
  font-weight: 620;
}
.login-submit:not(:disabled):hover { background: #163dba; }
.login-submit svg { position: absolute; right: 18px; width: 18px; height: 18px; }
.sidebar button.nav-link { width: 100%; background-color: transparent; }
#password-error { color: var(--error-text); font-size: 13px; }

@media (max-width: 740px) {
  .cloud-login { display: flex; flex-direction: column; padding: 10px; }
  .login-cover {
    padding: 22px 24px;
    border-radius: 10px;
    background-position: right 58%;
    background-size: 51% auto;
  }
  .login-cover::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #ebe6db 50%, #ebe6db00 74%);
  }
  .login-brand { max-width: 55%; }
  .login-signature { font-size: 15px; gap: 7px; }
  .login-mark { width: 26px; height: 26px; border-radius: 6px; }
  .login-mark svg { width: 17px; height: 17px; }
  .login-wordmark { margin-top: 10px; font-size: clamp(34px, 8vw, 49px); }
  #main.login-main { padding: clamp(34px, 7vh, 64px) 18px 32px; }
  .login-desks { position: static; justify-self: end; margin: -24px 0 16px; }
  .login-fields { max-width: 420px; width: 100%; }
  .login-destination { margin-bottom: 28px; }
}

@media (min-width: 741px) and (max-height: 560px) {
  #main.login-main { padding-block: 20px; }
  #main.login-main:has(.login-desks) { padding-top: 52px; }
  .login-destination { margin: 6px 0 18px; }
  .login-input + label { margin-top: 12px; }
  .login-submit { margin-top: 16px; }
}
