html,
body {
  width: 100%;
  height: 100vh !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
  margin: 0;
  padding: 0;
}

#fa-authShell {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: flex-start;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
  z-index: 10;
}

body.fa-report-mode #fa-authShell {
  display: none !important;
}

.fa-auth-container {
  width: 100%;
  height: 100vh;
  overflow: visible;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: clamp(24px, 6vw, 140px);
  z-index: 1;
  box-sizing: border-box;
}

.fa-auth-promo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.fa-auth-promo>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.fa-auth-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
  pointer-events: none;
}

#faPromoHeader,
#faPromoSubtitle {
  position: absolute;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  text-align: center;
  max-width: min(900px, calc(100vw - 80px));
  width: max-content;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#faPromoHeader {
  font-family: "Crimson Pro", "TeX Gyre Bonum", serif;
  position: absolute;
  top: 47px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  color: #1D3E2F !important;
  font-size: 45px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 1px;
  z-index: 10;
  pointer-events: none;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.95), 0 0 14px rgba(255, 255, 255, 0.85), 0 0 26px rgba(255, 255, 255, 0.70), 0 0 44px rgba(255, 255, 255, 0.55);
}

#faPromoSubtitle {
  font-family: "Crimson Pro", "TeX Gyre Bonum", serif;
  position: absolute;
  bottom: 40px;
  right: 35px;
  color: #1D3E2F !important;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  text-align: right;
  letter-spacing: 0.6px;
  z-index: 10;
  pointer-events: none;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.95), 0 0 12px rgba(255, 255, 255, 0.85), 0 0 22px rgba(255, 255, 255, 0.70), 0 0 38px rgba(255, 255, 255, 0.55);
}

#fa-card {
  position: relative;
  width: 383px;
  height: 459px;
  flex: 0 0 auto;
  background: var(--bg);
  border: none;
  border-radius: 14px;
  padding: 55px 25px 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  --fs-title: 36px;
  --fs-base: 15px;
  --fs-sm: 13px;
  --radius: 12px;
  --content-w: 100%;
  --row-gap: 8px;
  --helper-h: 14px;
}

#fa-card>*:not(.fa-card-logo) {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fa-card-logo {
  position: absolute;
  top: 30px;
  right: 30px;
  height: 60px;
}

#fa-authTitle {
  font-size: var(--fs-title);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.4px;
}

#fa-authSubtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 2px 0 24px;
  line-height: 1.4;
}

#btnProGoogle.fa-btn.google,
#fa-card .fa-btn.google,
#fa-card input,
#fa-card .fa-btn {
  font-size: var(--fs-base) !important;
  font-weight: 600;
}

#btnProGoogle.fa-btn.google,
#fa-card .fa-btn.google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #2d4832;
  border: 1px solid rgba(32, 33, 36, 0.18);
  padding: 11px 14px;
  margin-bottom: 4px;
  width: 100%;
  cursor: pointer;
}

#fa-card .fa-btn.google img {
  width: 18px;
  height: 18px;
}

.fa-or-divider {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(32, 33, 36, 0.45);
  padding: 4.5px 0;
  margin: 4.5px 0;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.fa-or-divider::before,
.fa-or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(32, 33, 36, 0.14);
}

.fa-or-divider:not(:empty)::before {
  margin-right: 0.6em;
}

.fa-or-divider:not(:empty)::after {
  margin-left: 0.6em;
}

#fa-formStage {
  position: relative;
  width: 100%;
  min-height: 185px;
}

#fa-loginForm,
#fa-registerForm {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: min-content;
  row-gap: var(--row-gap);
  grid-template-rows: auto var(--helper-h) auto auto auto;
}

#fa-card input {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(32, 33, 36, 0.18);
  background: #fff;
  box-sizing: border-box;
}

#fa-loginButton,
#fa-registerButton {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-sizing: border-box;
  margin-top: 6px;
}

#fa-resetPasswordLink {
  text-align: right;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: rgba(29, 62, 47, 0.85);
  height: var(--helper-h);
  line-height: var(--helper-h);
  margin-top: 2px;
  margin-bottom: -6px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.fa-switch-text {
  margin-top: 10px;
  width: 100%;
  font-size: var(--fs-sm);
  text-align: center;
  color: rgba(63, 95, 74, 0.95);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.fa-link {
  color: var(--brand);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#fa-globalLoading {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  z-index: 9999;
}

#fa-globalLoading[aria-hidden="false"] {
  display: flex;
}

.fa-global-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(204, 204, 204, 0.55);
  backdrop-filter: blur(6px);
}

.fa-global-spin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #d6dbd7;
  border-top-color: var(--brand);
  animation: fa-global-spin 0.9s linear infinite;
}

@keyframes fa-global-spin {
  to {
    transform: rotate(360deg);
  }
}

.fa-global-loading-text {
  font-size: 13px;
  color: #2d4832;
  opacity: 0.9;
}

#fa-loginForm .fa-row:first-of-type {
  grid-row: 1;
}

#fa-resetPasswordLink {
  grid-row: 2;
}

#fa-loginForm .fa-row:nth-of-type(2) {
  grid-row: 3;
}

#fa-loginButton,
#fa-registerButton {
  grid-row: 4;
}

#fa-switchLoginBlock,
#fa-switchRegisterBlock {
  grid-row: 5;
  display: flex;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 820px) {
  .fa-auth-promo {
    display: none !important;
  }

  .fa-auth-container {
    justify-content: center !important;
    padding-right: 0 !important;
  }

  #fa-card {
    width: calc(100% - 16px) !important;
    height: auto;
    padding: 40px 16px 40px;
    --fs-title: 28px;
    --fs-base: 13px;
    --fs-sm: 11px;
  }

  .fa-card-logo {
    top: 20px;
    height: 50px;
    right: 20px;
  }
}

#fa-alert,
#fa-alert-signup {
  display: none;
  position: fixed !important;
  bottom: 80px !important;
  right: 50px !important;
  width: 420px !important;
  padding: 24px 28px !important;
  border-radius: 22px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  z-index: 1000000 !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 25px 50px -12px rgba(0, 0, 0, 0.2), 0 0 0 1000vw rgba(0, 0, 0, 0.25) !important;
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-top: 2px solid rgba(255, 255, 255, 0.9) !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  isolation: isolate !important;
  transform: scale(0.95);
}

#fa-alert::before,
#fa-alert-signup::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  background-size: contain;
  background-repeat: no-repeat;
}

#fa-alert.fa-alert-info,
#fa-alert-signup.fa-alert-info {
  border-left: 10px solid #1D3E2F !important;
  color: #1D3E2F !important;
}

#fa-alert.fa-alert-info::before,
#fa-alert-signup.fa-alert-info::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%231D3E2F"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>');
}

#fa-alert.fa-alert-error,
#fa-alert-signup.fa-alert-error {
  border-left: 10px solid #d32f2f !important;
  color: #b71c1c !important;
}

#fa-alert.fa-alert-error::before,
#fa-alert-signup.fa-alert-error::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23d32f2f"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
}

#fa-alert.fa-alert--show,
#fa-alert-signup.fa-alert--show {
  display: block !important;
  animation: faPopOutPremium 0.12s cubic-bezier(0.15, 0.9, 0.2, 1) forwards !important;
}

@keyframes faPopOutPremium {
  0% {
    opacity: 0;
    transform: scale(0.7) translateY(40px);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: scale(0.95) translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 820px) {

  #fa-alert,
  #fa-alert-signup {
    right: 20px !important;
    left: 20px !important;
    bottom: 30px !important;
    width: auto !important;
    padding: 20px !important;
    transform: scale(0.95) !important;
  }
}

.dc-home-header {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 999999;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dc-home-header img {
  height: 80px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0px 0px 15px rgba(255, 255, 255, 0.3));
}

@media (max-width: 820px) {
  .dc-home-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #1D3E2F;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 999999;
  }

  .dc-home-header img {
    height: 70px;
    width: auto;
    filter: none;
  }

  .fa-auth-container {
    overflow: hidden !important;
    touch-action: none !important;
    padding-top: 0 !important;
  }
}