/* Central Bank login screen */
body:has(#loginScreen.active) {
  background: #f7fafd;
  animation: none;
}

body:has(#loginScreen.active) .app {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

body:has(#loginScreen.active) .app::before,
body:has(#loginScreen.active) .app::after {
  display: none;
}

body:has(#loginScreen.active) .app {
  min-height: 100vh;
  min-height: 100dvh;
}

#loginScreen.login-screen {
  box-sizing: border-box;
  display: flex !important;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 24px calc(18px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  color: #202631;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(211, 231, 250, .56), transparent 48%),
    linear-gradient(180deg, #f7fafd 0%, #fbfcfe 47%, #f7f9fc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-overflow-scrolling: touch;
}

#loginScreen .login-layout {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: min(100%, 382px);
  min-height: 0;
  margin: 0 auto;
}

#loginScreen .login-security-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 9px;
  min-height: 38px;
  margin: 2px auto 27px;
  padding: 0 14px;
  border: 1px solid rgba(47, 157, 111, .13);
  border-radius: 999px;
  background: rgba(250, 255, 252, .86);
  color: #52675e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

#loginScreen .login-security-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #18a66a;
}

#loginScreen .login-security-badge svg,
#loginScreen .login-security-chevron {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #8a958f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#loginScreen .login-brand {
  margin: 0 0 37px;
  text-align: center;
}

#loginScreen .login-logo {
  display: block;
  width: 78px;
  height: 78px;
  margin: 0 auto 11px;
  object-fit: contain;
}

#loginScreen .login-brand-title {
  margin: 0;
  color: #17202d;
  font-size: 30px;
  font-weight: 760;
  letter-spacing: .035em;
  line-height: 1.25;
}

#loginScreen .login-brand-subtitle {
  margin: 7px 0 0;
  color: #7d8795;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.45;
}

#loginScreen .login-brand-subtitle span {
  padding: 0 5px;
  color: #a4acb7;
}

#loginScreen .login-content {
  width: 100%;
}

#loginScreen .login-welcome {
  margin: 0 0 20px;
}

#loginScreen .login-welcome h2 {
  margin: 0;
  color: #171d27;
  font-size: 25px;
  font-weight: 740;
  letter-spacing: -.025em;
  line-height: 1.3;
}

#loginScreen .login-welcome p {
  margin: 7px 0 0;
  color: #87909d;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.55;
}

#loginScreen .login-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#loginScreen .login-field + .login-field {
  margin-top: 12px;
}

#loginScreen .login-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#loginScreen .login-input-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  height: 56px;
  padding: 0 13px;
  border: 1px solid #e7ebf0;
  border-radius: 15px;
  background: rgba(255, 255, 255, .86);
  transition: border-color .16s ease, box-shadow .16s ease;
}

#loginScreen .login-input-shell:focus-within {
  border-color: rgba(180, 35, 59, .35);
  box-shadow: 0 0 0 3px rgba(180, 35, 59, .055);
}

#loginScreen .login-input-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: #858f9d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#loginScreen .login-input-shell input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #232b36;
  font: inherit;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}

#loginScreen .login-input-shell input::placeholder {
  color: #a0a8b3;
  opacity: 1;
}

#loginScreen .login-password-toggle {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8993a0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#loginScreen .login-password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#loginScreen .login-password-toggle[aria-pressed="true"] .login-eye-slash {
  display: none;
}

#loginScreen .login-assist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  margin: 14px 1px 16px;
}

#loginScreen .login-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #555f6d;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
}

#loginScreen .login-remember input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #b5233b;
}

#loginScreen .login-forgot-password {
  color: #a33144;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

#loginScreen .login-primary,
#loginScreen .login-faceid {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  border-radius: 15px;
  font: inherit;
  font-size: 16px;
  font-weight: 680;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#loginScreen .login-primary {
  border: 1px solid #b51f39;
  background: linear-gradient(180deg, #c42b45 0%, #b31d38 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(164, 31, 54, .12);
}

#loginScreen .login-primary:active,
#loginScreen .login-faceid:active {
  transform: translateY(1px);
}

#loginScreen .login-error {
  margin-top: 9px;
  color: #b4233d;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

#loginScreen .login-error:empty {
  display: none;
}

#loginScreen .login-faceid {
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #e2e7ed;
  background: rgba(255, 255, 255, .76);
  color: #303845;
  font-size: 15px;
  font-weight: 620;
}

#loginScreen .login-faceid svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #b51f39;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

#loginScreen .login-faceid:disabled {
  cursor: default;
  opacity: .58;
}

#loginScreen .login-return-button {
  min-height: 42px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #8b3342;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

#loginScreen .login-return-button[hidden] {
  display: none !important;
}

#loginScreen .login-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: auto 0 4px;
  padding-top: 28px;
  color: #929aa6;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

#loginScreen .login-security-note svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: #8993a0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

#loginScreen .login-security-note .login-security-chevron {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

@media (max-height: 760px) {
  #loginScreen.login-screen {
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  #loginScreen .login-security-badge {
    min-height: 34px;
    margin-bottom: 18px;
  }

  #loginScreen .login-brand {
    margin-bottom: 24px;
  }

  #loginScreen .login-logo {
    width: 66px;
    height: 66px;
  }

  #loginScreen .login-welcome {
    margin-bottom: 15px;
  }

  #loginScreen .login-input-shell,
  #loginScreen .login-primary,
  #loginScreen .login-faceid {
    height: 52px;
  }

  #loginScreen .login-security-note {
    padding-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #loginScreen .login-input-shell,
  #loginScreen .login-primary,
  #loginScreen .login-faceid {
    transition: none;
  }
}
