:root {
  --login-primary: #0d6efd;
  --login-primary-dark: #0a58ca;
  --login-navy: #071a35;
  --login-ink: #1e293b;
  --login-muted: #64748b;
  --login-border: #d9e2ef;
}

html,
body.login-page {
  min-height: 100%;
  overflow: auto;
}

body.login-page {
  margin: 0;
  color: var(--login-ink);
  font: 15px/1.5 "Open Sans", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(13, 110, 253, .32), transparent 30rem),
    radial-gradient(circle at 88% 85%, rgba(65, 162, 255, .22), transparent 26rem),
    linear-gradient(135deg, #06152d 0%, var(--login-navy) 52%, #0a2b5b 100%);
}

.login-topbar {
  position: relative;
  z-index: 2;
  min-height: 68px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(4, 17, 37, .3);
}

.login-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.login-topbar__brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
  text-decoration: none;
}

.login-topbar__brand img {
  width: 125px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .24));
}

.login-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.login-services a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, .82);
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
}

.login-services a:hover,
.login-services a:focus {
  color: #fff;
  background: rgba(255, 255, 255, .11);
}

.login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px);
  padding: 42px 20px;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 390px);
  width: min(940px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.login-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 510px;
  padding: 48px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(5, 25, 58, .18), rgba(5, 25, 58, .9)),
    url("../img/background.jpg") center / cover;
}

.login-intro__eyebrow {
  margin-bottom: 10px;
  color: #9ec5fe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-intro h1 {
  max-width: 360px;
  margin: 0 0 12px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.18;
}

.login-intro p {
  max-width: 385px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  background: #fff;
}

.login-card__logo {
  width: 172px;
  height: auto;
  max-height: 61px;
  margin-bottom: 30px;
  object-fit: contain;
}

.login-card h2 {
  margin: 0 0 6px;
  color: var(--login-ink);
  font-size: 25px;
  font-weight: 700;
}

.login-card__subtitle {
  margin: 0 0 28px;
  color: var(--login-muted);
}

.login-field {
  position: relative;
  margin-bottom: 17px;
}

.login-field label {
  display: block;
  margin-bottom: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.login-field .fa {
  position: absolute;
  top: 39px;
  left: 14px;
  color: #7890ac;
}

.login-field .login__input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  color: var(--login-ink);
  border: 1px solid var(--login-border);
  border-radius: 7px;
  background: #fff;
  font-size: 14px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.login-field .login__input:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .15);
}

.login-options {
  display: flex;
  align-items: center;
  margin: 2px 0 23px;
  color: #526277;
  font-size: 13px;
}

.login-options input {
  width: 15px;
  height: 15px;
  margin: 0 8px 0 0;
  accent-color: var(--login-primary);
}

.login__submit {
  position: relative;
  width: 100%;
  min-height: 46px;
  color: #fff;
  border: 1px solid var(--login-primary);
  border-radius: 7px;
  background: var(--login-primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, opacity .16s ease;
}

.login__submit:hover,
.login__submit:focus {
  border-color: var(--login-primary-dark);
  background: var(--login-primary-dark);
}

.login__submit.is-loading {
  cursor: wait;
  opacity: .78;
}

.login__submit.is-loading .login__submit-label {
  opacity: 0;
}

.login__submit.is-loading:after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px;
  border: 2px solid rgba(255, 255, 255, .48);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  animation: login-spin .65s linear infinite;
}

.login-feedback {
  min-height: 20px;
  margin: 16px 0 0;
  color: #b42318;
  font-size: 13px;
}

.login-feedback:empty {
  display: none;
}

.login-footer {
  margin: 28px 0 0;
  color: #8b9aad;
  font-size: 12px;
  text-align: center;
}

.login-success {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
  background: rgba(4, 18, 39, .94);
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
}

.login-success.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.login-success__content {
  width: min(350px, 100%);
  text-align: center;
  transform: translateY(14px) scale(.97);
  transition: transform .38s ease;
}

.login-success.is-visible .login-success__content {
  transform: translateY(0) scale(1);
}

.login-success__avatar {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border: 3px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

.login-success__avatar--logo {
  width: 152px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

.login-success__eyebrow {
  margin: 0 0 10px;
  color: #9ec5fe;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.login-success h2 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 27px;
  font-weight: 600;
}

.login-success h2 span {
  display: block;
  margin-top: 3px;
}

.login-success h2 + p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .login-topbar {
    padding: 0 20px;
  }

  .login-topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }

  .login-services {
    justify-content: flex-start;
  }

  .login-shell {
    min-height: auto;
    padding: 26px 16px;
  }

  .login-layout {
    display: block;
    max-width: 420px;
  }

  .login-intro {
    min-height: 180px;
    padding: 28px;
  }

  .login-intro h1 {
    font-size: 25px;
  }

  .login-intro p {
    font-size: 14px;
  }

  .login-card {
    padding: 30px 26px;
  }
}
