.login-page {
  background: var(--card);
}

.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.login-aside {
  display: none;
}

.login-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 20px;
}

.login-main__inner {
  width: min(100%, 430px);
  margin: auto;
  padding: 20px 0 32px;
}

.login-brand {
  display: inline-block;
  width: 176px;
}

.login-brand img {
  width: 100%;
  height: auto;
}

.login-brand--mobile {
  margin-bottom: 56px;
}

.login-eyebrow {
  color: var(--acc);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.login-heading {
  margin-bottom: 36px;
}

.login-heading h1 {
  margin: 12px 0 10px;
  font-size: clamp(1.875rem, 5vw, 2.375rem);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.login-heading > p:last-child {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.login-notice {
  margin: 0 0 24px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: var(--r-ctl);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.login-notice--error {
  border-color: #f0b7b7;
  background: var(--danger-soft);
  color: #8b1d1d;
}

.login-notice--success {
  border-color: #b7dfc2;
  background: var(--ok-soft);
  color: #166534;
}

#login-form, #set-password-form {
  display: grid;
  gap: 22px;
}

.login-field {
  display: grid;
  gap: 9px;
}

.login-field label {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 650;
}

.login-field__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.login-field__heading a {
  font-size: 0.875rem;
  font-weight: 600;
}

.login-field input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.login-field input:hover {
  border-color: var(--muted);
}

.login-field input:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-soft);
}

.login-password {
  position: relative;
}

.login-password input {
  padding-right: 106px;
}

.login-password button {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 92px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--acc);
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
}

.login-password button:hover {
  background: var(--acc-soft);
}

.login-submit,
.login-sso {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid var(--acc);
  border-radius: var(--r-ctl);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.login-submit {
  margin-top: 6px;
  background: var(--acc);
  color: #fff;
}

.login-submit:hover {
  border-color: var(--acc-hover);
  background: var(--acc-hover);
}

.login-submit:disabled {
  cursor: progress;
  opacity: 0.72;
}

.login-sso {
  background: var(--card);
  color: var(--acc);
}

.login-sso:hover {
  background: var(--acc-soft);
  text-decoration: none;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-support {
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.login-support a {
  font-weight: 650;
}

.login-copyright {
  width: 100%;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 960px) {
  .login-shell {
    grid-template-columns: minmax(390px, 46%) minmax(0, 1fr);
  }

  .login-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: clamp(32px, 4vw, 64px);
    border-right: 1px solid #dce9df;
    background: var(--acc-soft);
  }

  .login-aside__content {
    width: min(100%, 570px);
    margin: 72px 0;
  }

  .login-aside__headline {
    margin-top: 20px;
    color: #113f33;
    font-size: clamp(2.875rem, 4.4vw, 4.625rem);
    font-weight: 680;
    letter-spacing: -0.07em;
    line-height: 1.08;
  }

  .login-aside__headline span {
    color: var(--acc);
  }

  .login-aside__description {
    width: min(100%, 420px);
    margin-top: 24px;
    color: #3a6255;
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .login-example {
    display: grid;
    gap: 12px;
    width: min(100%, 440px);
    margin-top: 54px;
    padding: 22px 0;
    border-top: 1px solid #bed6c8;
    border-bottom: 1px solid #bed6c8;
  }

  .login-example__label {
    color: #3a6255;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .login-example__url {
    color: var(--acc);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
  }

  .login-example__url strong {
    font-weight: 700;
  }

  .login-example__url span {
    color: #618578;
  }

  .login-aside__footer {
    color: #3a6255;
    font-size: 0.8125rem;
  }

  .login-main {
    padding: 48px clamp(40px, 6vw, 96px) 28px;
  }

  .login-brand--mobile {
    display: none;
  }
}

@media (max-width: 479px) {
  .login-main {
    padding: 24px 20px 18px;
  }

  .login-brand--mobile {
    width: 154px;
    margin-bottom: 48px;
  }

  .login-heading {
    margin-bottom: 30px;
  }
}

@media (max-height: 550px) and (max-width: 959px) {
  .login-main {
    padding-top: 20px;
  }

  .login-main__inner {
    margin: 0 auto;
    padding-top: 0;
  }

  .login-brand--mobile {
    width: 132px;
    margin-bottom: 24px;
  }

  .login-heading {
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-field input,
  .login-submit,
  .login-sso {
    transition: none;
  }
}
