/* Fintech / crypto-inspired login — light mode */
.login-shell.background--manager {
  --login-bg: #f4fbf8;
  --login-panel: rgb(255 255 255 / 0.78);
  --login-panel-border: rgb(7 123 58 / 0.14);
  --login-cyan: #00a8b8;
  --login-cyan-bright: #3ebbc8;
  --login-lime: #8fd63a;
  --login-lime-soft: #b2ff59;
  --login-ink: #0b1b14;
  --login-text: #12231c;
  --login-muted: #5b6b66;
  background: var(--login-bg);
  color: var(--login-text);
}

.login-shell .background__layer {
  opacity: 0.85;
}

.login-shell.background--manager .background__gradient {
  background:
    radial-gradient(circle at 12% 18%, rgb(62 187 200 / 0.22), transparent 42%),
    radial-gradient(circle at 88% 12%, rgb(178 255 89 / 0.28), transparent 40%),
    radial-gradient(circle at 70% 88%, rgb(7 123 58 / 0.14), transparent 46%),
    linear-gradient(160deg, #f7fffc 0%, #eefaf6 45%, #f8fff4 100%);
}

.login-shell .background__orb {
  filter: saturate(1.15) blur(6px);
  opacity: 0.55;
}

.login-shell .content-layout--centered {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: 100%;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.login {
  position: relative;
  z-index: 1;
  width: min(100%, 52rem);
  margin-inline: auto;
}

.login__fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.login__grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgb(7 123 58 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(7 123 58 / 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
  transform: perspective(700px) rotateX(58deg) translateY(-12%);
  animation: login-grid-drift 18s linear infinite;
}

.login__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  will-change: transform;
}

.login__glow--a {
  width: 28rem;
  height: 28rem;
  top: -8%;
  left: -6%;
  background: rgb(62 187 200 / 0.28);
  animation: login-float-a 11s ease-in-out infinite;
}

.login__glow--b {
  width: 24rem;
  height: 24rem;
  right: -4%;
  top: 18%;
  background: rgb(178 255 89 / 0.32);
  animation: login-float-b 13s ease-in-out infinite;
}

.login__glow--c {
  width: 32rem;
  height: 32rem;
  left: 35%;
  bottom: -18%;
  background: rgb(7 123 58 / 0.16);
  animation: login-float-c 15s ease-in-out infinite;
}

.login__orbit {
  position: absolute;
  width: min(72vw, 34rem);
  height: min(72vw, 34rem);
  left: 50%;
  top: 42%;
  border-radius: 50%;
  border: 1px solid rgb(0 168 184 / 0.18);
  box-shadow:
    0 0 40px rgb(62 187 200 / 0.12),
    inset 0 0 40px rgb(178 255 89 / 0.08);
  transform: translate(-50%, -50%);
  animation: login-spin 48s linear infinite;
}

.login__orbit::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgb(7 123 58 / 0.18);
}

.login__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

.login__stage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  animation: login-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login__card,
.login__census {
  position: relative;
  border-radius: 1.25rem;
  isolation: isolate;
}

.login__card {
  padding: 1.75rem 1.6rem 1.5rem;
  border: 1px solid var(--login-panel-border);
  background:
    linear-gradient(165deg, #ffffff, rgb(255 255 255 / 0.96)),
    var(--login-panel);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.7) inset,
    0 22px 50px rgb(15 40 30 / 0.1),
    0 0 60px rgb(62 187 200 / 0.1);
  text-align: center;
}

.login__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgb(0 168 184 / 0.7),
    transparent 35%,
    transparent 65%,
    rgb(143 214 58 / 0.75)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.login__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--ds-font-accent, "Poppins", sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--login-cyan);
}

.login__logo-plate {
  display: grid;
  place-items: center;
  width: min(100%, 15rem);
  margin: 0 auto 1.15rem;
  padding: 0.7rem 1rem;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow:
    0 0 0 1px rgb(143 214 58 / 0.35),
    0 10px 28px rgb(0 168 184 / 0.12);
}

.login__logo {
  display: block;
  width: 100%;
  height: auto;
}

.login__title {
  margin: 0 0 0.45rem;
  font-family: var(--ds-font-display, "Inter", sans-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(
    110deg,
    var(--login-ink) 8%,
    var(--login-cyan) 48%,
    #2f9e3e 92%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login__lead {
  margin: 0 0 1.4rem;
  font-size: 0.925rem;
  line-height: 1.55;
  color: var(--login-muted);
}

.login__form {
  text-align: left;
}

.login__card .ds-field__label {
  color: #334742;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login__card .ds-control {
  color: var(--login-ink);
  background: rgb(255 255 255 / 0.92);
  border: 1px solid rgb(7 123 58 / 0.16);
  border-radius: 0.75rem;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8);
}

.login__card .ds-control:hover:not(:disabled) {
  border-color: rgb(0 168 184 / 0.55);
}

.login__card .ds-control:focus {
  border-color: var(--login-cyan);
  box-shadow:
    0 0 0 3px rgb(0 168 184 / 0.16),
    0 0 18px rgb(62 187 200 / 0.14);
}

.login__card .ds-control:disabled {
  background: #f3f6f5;
}

.login__card .ds-password__toggle {
  color: var(--login-muted);
}

.login__card .ds-password__toggle:hover {
  color: var(--login-cyan);
}

.login__forgot {
  margin: -0.35rem 0 0.85rem;
  text-align: right;
  font-size: 0.8125rem;
}

.login__forgot a {
  color: var(--login-cyan);
  font-weight: 600;
  text-decoration: none;
}

.login__forgot a:hover {
  text-decoration: underline;
  color: #077b3a;
}

.login__error {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  color: #9f1d1d;
  background: rgb(214 53 22 / 0.08);
  border: 1px solid rgb(214 53 22 / 0.22);
}

.login__success {
  margin: 0 0 0.5rem;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid #077b3a;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--login-text);
  background: rgb(178 255 89 / 0.18);
}

.login__cta,
a.button.login__cta,
button.button.login__cta {
  width: 100%;
  justify-content: center;
  min-height: 2.85rem;
  margin-top: 0;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  font-family: var(--ds-font-button, var(--ds-font-accent, "Poppins", sans-serif));
  font-size: 0.875rem;
  font-weight: 700;
  line-height: var(--ds-button-line-height, 1.2);
  letter-spacing: normal;
  text-decoration: none;
  color: #0b5c2e;
  background: rgb(178 255 89 / 0.22);
  border: 1px solid rgb(47 158 62 / 0.45);
  box-shadow: 0 0 20px rgb(178 255 89 / 0.18);
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.login__cta:hover:not(:disabled),
a.button.login__cta:hover:not(:disabled),
button.button.login__cta:hover:not(:disabled) {
  color: #0b1b14;
  background: #b2ff59;
  border-color: #0b5c2e;
  filter: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgb(11 92 46 / 0.22);
}

.login__back {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--login-muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.login__back:hover {
  color: var(--login-cyan);
  text-decoration: none;
}

.login__census {
  display: grid;
  gap: 0.55rem;
  align-content: center;
  padding: 1.35rem 1.3rem 1.4rem;
  border: 1px solid rgb(7 123 58 / 0.28);
  background:
    linear-gradient(160deg, rgb(178 255 89 / 0.22), transparent 52%),
    #ffffff;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.7) inset,
    0 18px 44px rgb(15 40 30 / 0.08),
    0 0 40px rgb(178 255 89 / 0.16);
  text-align: left;
}

.login__census::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #6fcf2b;
  box-shadow: 0 0 14px rgb(143 214 58 / 0.7);
  animation: login-pulse 2.2s ease-in-out infinite;
}

.login__census-eyebrow {
  margin: 0;
  font-family: var(--ds-font-accent, "Poppins", sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2f9e3e;
}

.login__census-title {
  margin: 0;
  font-family: var(--ds-font-display, "Inter", sans-serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--login-ink);
}

.login__census-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--login-muted);
}

.login__cta--census {
  margin-top: 0.4rem;
}

@media (min-width: 860px) {
  .login__stage {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1.4rem;
    align-items: stretch;
  }

  .login__card {
    padding: 2rem 1.85rem 1.65rem;
  }

  .login__census {
    min-height: 100%;
  }
}

@keyframes login-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes login-float-a {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(4%, 6%);
  }
}

@keyframes login-float-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-5%, 4%);
  }
}

@keyframes login-float-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(3%, -5%);
  }
}

@keyframes login-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes login-grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 48px, 48px 0;
  }
}

@keyframes login-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.75);
  }
}

@media (prefers-reduced-motion: reduce) {
  .login__stage,
  .login__glow,
  .login__orbit,
  .login__grid,
  .login__census::after,
  .login__cta {
    animation: none !important;
    transition: none !important;
  }
}
