.brand-logo {
  display: block;
  width: 44px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.login-page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(20px, 5vw, 64px);
  overflow: hidden auto;
  background:
    radial-gradient(circle at 16% 18%, rgba(202, 232, 137, .24), transparent 30%),
    radial-gradient(circle at 84% 82%, rgba(30, 90, 67, .16), transparent 34%),
    linear-gradient(145deg, #f8fbf9 0%, #edf5f0 52%, #f7faf8 100%);
  animation: login-page-in .65s cubic-bezier(.22, 1, .36, 1) both;
}

.login-page::before,
.login-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: min(48vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(18, 55, 42, .07);
  border-radius: 50%;
  pointer-events: none;
}

.login-page::before {
  top: -27vw;
  right: -15vw;
  box-shadow: 0 0 0 70px rgba(18, 55, 42, .025), 0 0 0 145px rgba(18, 55, 42, .018);
}

.login-page::after {
  bottom: -31vw;
  left: -18vw;
  box-shadow: 0 0 0 64px rgba(30, 90, 67, .025), 0 0 0 132px rgba(30, 90, 67, .018);
}

.login-page.leaving {
  pointer-events: none;
  animation: login-page-out .26s ease both;
}

.login-stage {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 30px;
  background: rgba(255, 255, 255, .83);
  box-shadow: 0 28px 75px rgba(18, 55, 42, .15), inset 0 1px 0 rgba(255, 255, 255, .95);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  text-align: center;
  animation: login-card-in .8s .08s cubic-bezier(.22, 1, .36, 1) both;
}

.login-brand {
  display: grid;
  justify-items: center;
  text-align: center;
}

.login-logo-shell {
  position: relative;
  display: grid;
  place-items: center;
  width: min(420px, 100%);
  height: 232px;
  animation: logo-float 6s 1s ease-in-out infinite;
}

.login-logo-shell::before {
  content: "";
  position: absolute;
  inset: 24px 12px 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(202, 232, 137, .68), rgba(30, 90, 67, .1) 52%, transparent 72%);
  filter: blur(16px);
  animation: logo-glow 4.8s 1s ease-in-out infinite;
}

.brand-logo.large.login-logo {
  position: relative;
  z-index: 1;
  width: 410px;
  max-width: 100%;
  height: 224px;
  margin: 0;
  filter: drop-shadow(0 15px 22px rgba(18, 55, 42, .2));
  animation: logo-breathe 4.8s 1s ease-in-out infinite;
}

.login-slogan {
  margin: -4px 0 0;
  line-height: 1.18;
  text-align: center;
  animation: login-copy-in .8s .22s cubic-bezier(.22, 1, .36, 1) both;
}

.login-slogan span {
  display: block;
  color: var(--green);
  font-family: Arial, sans-serif;
  font-size: clamp(32px, 7vw, 43px);
  font-weight: 900;
  letter-spacing: 5px;
  text-indent: 5px;
}

.login-slogan small {
  display: block;
  margin-top: 8px;
  color: #456158;
  font-family: Arial, sans-serif;
  font-size: clamp(14px, 3.4vw, 17px);
  font-weight: 600;
  letter-spacing: .2px;
}

.login-card {
  width: 100%;
  margin-top: 22px;
  text-align: center;
  animation: login-form-in .8s .34s cubic-bezier(.22, 1, .36, 1) both;
}

.login-card label {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  color: #324840;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.login-card input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(18, 55, 42, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  text-align: center;
  direction: ltr;
  box-shadow: inset 0 1px 2px rgba(18, 55, 42, .035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.login-card input:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 4px rgba(30, 90, 67, .1), 0 8px 24px rgba(18, 55, 42, .07);
  transform: translateY(-1px);
}

.login-card .btn.wide {
  min-height: 52px;
  margin-top: 24px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(18, 55, 42, .22);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.login-card .btn.wide:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(18, 55, 42, .26);
}

.login-card .btn.wide:active:not(:disabled) {
  transform: translateY(0);
}

.login-card .btn.wide:disabled {
  cursor: wait;
  opacity: .78;
}

.brand .brand-logo {
  width: 48px;
  height: 54px;
}

.brand strong {
  font-size: 20px;
  letter-spacing: 1px;
}

.brand small {
  font-size: 8px;
  direction: ltr;
  text-align: right;
}

.qr-label-brand .brand-logo {
  width: 46px;
  height: 52px;
}

.tiknow-qr-brand {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.tiknow-qr-brand .qr-brand-mark {
  display: block;
  width: 96px;
  height: 101px;
  object-fit: contain;
}

.tiknow-qr-brand>small {
  color: var(--muted);
  font-size: 9px;
}

@keyframes login-page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes login-page-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.012); }
}

@keyframes login-card-in {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes login-copy-in {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes login-form-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes logo-breathe {
  0%, 100% { opacity: 1; filter: drop-shadow(0 15px 22px rgba(18, 55, 42, .2)); }
  50% { opacity: .88; filter: drop-shadow(0 20px 29px rgba(18, 55, 42, .29)); }
}

@keyframes logo-glow {
  0%, 100% { opacity: .38; transform: scale(.94); }
  50% { opacity: .72; transform: scale(1.04); }
}

@media (max-width: 760px) {
  .login-page {
    display: grid;
    padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  }

  .login-stage {
    padding: 28px 22px 30px;
    border-radius: 24px;
  }

  .login-logo-shell {
    width: min(310px, 100%);
    height: 174px;
  }

  .brand-logo.large.login-logo {
    width: 300px;
    height: 164px;
  }

  .login-card {
    margin-top: 28px;
  }
}

@media (min-height: 691px) and (max-height: 820px) and (min-width: 761px) {
  .login-stage {
    padding-top: 26px;
    padding-bottom: 30px;
  }

  .login-logo-shell {
    width: 290px;
    height: 158px;
  }

  .brand-logo.large.login-logo {
    width: 280px;
    height: 153px;
  }

  .login-card {
    margin-top: 25px;
  }
}

@media (max-width: 380px), (max-height: 690px) {
  .login-stage {
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .login-logo-shell {
    width: 250px;
    height: 137px;
  }

  .brand-logo.large.login-logo {
    width: 240px;
    height: 131px;
  }

  .login-slogan span {
    font-size: 30px;
  }

  .login-slogan small {
    font-size: 13px;
  }

  .login-card {
    margin-top: 22px;
  }

  .login-card label {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-page,
  .login-page.leaving,
  .login-stage,
  .login-logo-shell,
  .login-logo-shell::before,
  .login-logo,
  .login-slogan,
  .login-card {
    animation: none !important;
  }
}
