:root {
  --lndw-background: #25242c;
  --lndw-background-deep: #17171e;
  --lndw-card: #ffffff;
  --lndw-text: #f8f8fb;
  --lndw-text-dark: #20202a;
  --lndw-muted: #aaa7bd;
  --lndw-border: #dcdce7;
  --lndw-pink: #ff245f;
  --lndw-magenta: #e828c5;
  --lndw-purple: #7145ff;
  --lndw-lavender: #b8a3ff;
  --lndw-gradient: linear-gradient(
    100deg,
    var(--lndw-pink),
    var(--lndw-magenta) 52%,
    var(--lndw-purple)
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body.lndw-login-page {
  color: var(--lndw-text);
  background:
    radial-gradient(
      circle at 65% 35%,
      rgba(113, 69, 255, 0.09),
      transparent 32%
    ),
    radial-gradient(
      circle at 30% 80%,
      rgba(232, 40, 197, 0.06),
      transparent 29%
    ),
    var(--lndw-background);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.login-layout {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.login-layout::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.015),
    transparent 40%,
    rgba(255, 255, 255, 0.01)
  );
  content: "";
  pointer-events: none;
}

.login-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 16px clamp(24px, 4vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 27, 0.48);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: #fff;
}

.brand__logo {
  width: auto;
  height: 34px;
  max-width: 190px;
}

.brand__name {
  font-size: 31px;
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -2px;
}

.brand__tagline {
  margin-top: 7px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d9d4ee;
  font-size: 14px;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.help-link svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.help-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.login-main {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: clamp(48px, 7vw, 120px);
  width: min(1450px, calc(100% - 96px));
  min-height: calc(100svh - 86px);
  margin: 0 auto;
  padding: 68px 0;
}

.login-presentation {
  position: relative;
  min-width: 0;
  padding-left: clamp(0px, 3vw, 44px);
}

.login-presentation__content {
  position: relative;
  z-index: 5;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lndw-lavender);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-presentation h1 {
  max-width: 630px;
  margin: 0;
  color: #fff;
  font-size: clamp(68px, 6.3vw, 112px);
  font-weight: 950;
  line-height: 0.83;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.login-presentation h1 span {
  display: block;
}

.title-line {
  width: 68px;
  height: 5px;
  margin: 31px 0 28px;
  border-radius: 999px;
  background: var(--lndw-gradient);
  box-shadow: 0 0 22px rgba(232, 40, 197, 0.35);
}

.intro {
  max-width: 500px;
  margin: 0;
  color: #c8bdf7;
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.45;
}

.features {
  display: grid;
  gap: 25px;
  margin-top: 47px;
}

.feature {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 19px;
  align-items: start;
  max-width: 490px;
}

.feature__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(var(--lndw-background), var(--lndw-background)) padding-box,
    var(--lndw-gradient) border-box;
  box-shadow:
    0 0 24px rgba(232, 40, 197, 0.2),
    inset 0 0 16px rgba(113, 69, 255, 0.08);
}

.feature__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #e94fd0;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.feature h2 {
  margin: 1px 0 5px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: #aaa8b8;
  font-size: 14px;
  line-height: 1.6;
}

.security-badge {
  position: absolute;
  z-index: 7;
  top: 40px;
  right: -25px;
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  border-radius: 44% 56% 50% 50% / 50% 43% 57% 50%;
  background: var(--lndw-gradient);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 35px rgba(232, 40, 197, 0.28);
  transform: rotate(8deg);
  animation: lndw-float 5s ease-in-out infinite;
}

.security-badge::before {
  position: absolute;
  inset: -11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  content: "";
}

.security-badge svg {
  width: 62px;
  height: 62px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transform: rotate(-8deg);
}

.dotted-connector {
  position: absolute;
  z-index: 3;
  top: 85px;
  right: -210px;
  width: 450px;
  overflow: visible;
  pointer-events: none;
}

.dotted-connector path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.78);
  stroke-dasharray: 1 15;
  stroke-linecap: round;
  stroke-width: 5;
}

.login-panel {
  position: relative;
  z-index: 8;
  display: flex;
  justify-content: center;
}

.login-card {
  position: relative;
  width: min(100%, 535px);
  padding: 37px 48px 35px;
  color: var(--lndw-text-dark);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: linear-gradient(
    150deg,
    rgba(255, 255, 255, 0.98),
    rgba(250, 249, 255, 0.96)
  );
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.34),
    0 0 55px rgba(113, 69, 255, 0.13);
}

.login-card__icon {
  display: grid;
  width: 90px;
  height: 90px;
  margin: 0 auto 19px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 35% 30%,
      rgba(255, 255, 255, 0.1),
      transparent 35%
    ),
    #24232d;
  box-shadow:
    0 13px 25px rgba(26, 25, 34, 0.22),
    0 0 25px rgba(232, 40, 197, 0.12);
}

.login-card__icon svg {
  width: 51px;
  height: 51px;
  fill: none;
  stroke: url("#gradient");
  stroke: #dd32c9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.login-card__heading {
  margin-bottom: 32px;
  text-align: center;
}

.login-card__heading h2 {
  margin: 0;
  color: #1d1d25;
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.login-card__heading p {
  margin: 9px 0 0;
  color: #77748a;
  font-size: 14px;
}

.login-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 21px;
  padding: 13px 15px;
  color: #9e1836;
  border: 1px solid rgba(208, 41, 78, 0.23);
  border-radius: 11px;
  background: rgba(255, 231, 237, 0.8);
  font-size: 13px;
}

.login-error svg {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.login-form {
  display: grid;
  gap: 21px;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field label {
  color: #2b2a35;
  font-size: 14px;
  font-weight: 650;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  min-height: 53px;
  padding: 0 52px;
  color: #24232e;
  border: 1px solid var(--lndw-border);
  border-radius: 10px;
  outline: none;
  background: rgba(255, 255, 255, 0.75);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.02),
    inset 0 1px 2px rgba(30, 30, 50, 0.02);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.input-wrapper input::placeholder {
  color: #aaa8bb;
}

.input-wrapper input:hover {
  border-color: #c5c1d6;
}

.input-wrapper input:focus {
  border-color: #9a6cff;
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(113, 69, 255, 0.11),
    0 7px 20px rgba(62, 51, 102, 0.05);
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #aaa8bc;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  pointer-events: none;
  transform: translateY(-50%);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: #9e9bae;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    background 180ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--lndw-purple);
  background: rgba(113, 69, 255, 0.08);
  outline: none;
}

.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.password-toggle .icon-eye-off {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-eye-off {
  display: block;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 1px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #44424f;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.remember input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.remember__box {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #cbc8d7;
  border-radius: 5px;
  background: #fff;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.remember__box svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.remember input:checked + .remember__box {
  border-color: transparent;
  background: var(--lndw-gradient);
  box-shadow: 0 4px 11px rgba(113, 69, 255, 0.22);
}

.remember input:checked + .remember__box svg {
  opacity: 1;
  transform: scale(1);
}

.remember input:focus-visible + .remember__box {
  box-shadow: 0 0 0 4px rgba(113, 69, 255, 0.12);
}

.login-turnstile {
  margin-top: 4px;
}

.cf-turnstile {
  display: flex;
  justify-content: center;
  min-height: 65px;
}

.login-turnstile__error {
  margin: 8px 0 0;
  color: #c81e5b;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.login-submit {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 58px;
  margin-top: 3px;
  padding: 0 22px 0 55px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--lndw-gradient);
  box-shadow:
    0 13px 24px rgba(113, 69, 255, 0.24),
    0 5px 12px rgba(255, 36, 95, 0.13);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.login-submit::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255, 255, 255, 0.2) 48%,
    transparent 70%
  );
  content: "";
  transform: translateX(-130%);
  transition: transform 550ms ease;
}

.login-submit:hover {
  box-shadow:
    0 17px 30px rgba(113, 69, 255, 0.3),
    0 7px 15px rgba(255, 36, 95, 0.18);
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.login-submit:hover::before {
  transform: translateX(130%);
}

.login-submit:active {
  transform: translateY(0);
}

.login-submit:focus-visible {
  outline: 4px solid rgba(113, 69, 255, 0.2);
  outline-offset: 3px;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.8;
  transform: none;
}

.login-submit__label {
  position: relative;
  z-index: 2;
  justify-self: center;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.login-submit__arrow {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.login-submit__loader {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: lndw-spin 700ms linear infinite;
}

.login-form.is-loading .login-submit__label,
.login-form.is-loading .login-submit__arrow {
  visibility: hidden;
}

.login-form.is-loading .login-submit__loader {
  display: block;
}

.card-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 31px 0 24px;
}

.card-divider span {
  height: 1px;
  background: #e6e4ed;
}

.card-divider svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #aaa7b9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.back-to-site {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--lndw-purple);
  font-size: 13px;
  font-weight: 600;
}

.back-to-site svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}

.back-to-site:hover svg {
  transform: translateX(-4px);
}

.decorative-blob {
  position: absolute;
  z-index: 1;
  bottom: -115px;
  left: -105px;
  width: 310px;
  height: 310px;
  border-radius: 44% 56% 61% 39% / 45% 42% 58% 55%;
  background: var(--lndw-gradient);
  box-shadow: 0 0 80px rgba(113, 69, 255, 0.25);
  transform: rotate(18deg);
}

.decorative-blob svg {
  position: absolute;
  top: 40px;
  left: 45px;
  width: 205px;
  height: 205px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.3;
  transform: rotate(-18deg);
}

.decorative-star {
  position: absolute;
  z-index: 1;
  bottom: 44px;
  left: 39%;
  width: 62px;
  height: 62px;
  opacity: 0.9;
  transform: rotate(12deg);
}

.decorative-star span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 8px;
  border-radius: 999px;
  background: var(--lndw-gradient);
  transform: translate(-50%, -50%);
}

.decorative-star span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.decorative-star span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(90deg);
}

.decorative-star span:nth-child(4) {
  transform: translate(-50%, -50%) rotate(135deg);
}

@keyframes lndw-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes lndw-float {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }

  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}

@media (max-width: 1150px) {
  .login-main {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1fr);
    width: min(1200px, calc(100% - 48px));
    gap: 45px;
  }

  .login-presentation h1 {
    font-size: clamp(64px, 7vw, 86px);
  }

  .security-badge {
    top: 60px;
    right: -20px;
    width: 105px;
    height: 105px;
  }

  .security-badge svg {
    width: 52px;
    height: 52px;
  }

  .dotted-connector {
    display: none;
  }

  .login-card {
    padding-right: 38px;
    padding-left: 38px;
  }
}

@media (max-width: 900px) {
  body.lndw-login-page {
    overflow-y: auto;
  }

  .login-main {
    grid-template-columns: 1fr;
    width: min(680px, calc(100% - 36px));
    padding: 48px 0 70px;
  }

  .login-presentation {
    padding-left: 0;
    text-align: center;
  }

  .login-presentation__content {
    margin: 0 auto;
  }

  .title-line {
    margin-right: auto;
    margin-left: auto;
  }

  .intro {
    margin-right: auto;
    margin-left: auto;
  }

  .features {
    display: none;
  }

  .security-badge {
    top: auto;
    right: 5%;
    bottom: -45px;
    width: 90px;
    height: 90px;
  }

  .security-badge svg {
    width: 44px;
    height: 44px;
  }

  .decorative-star {
    display: none;
  }

  .decorative-blob {
    opacity: 0.45;
  }
}

@media (max-width: 560px) {
  .login-header {
    min-height: 72px;
    padding: 13px 20px;
  }

  .brand__name {
    font-size: 25px;
  }

  .help-link span {
    display: none;
  }

  .login-main {
    width: min(100%, calc(100% - 24px));
    min-height: calc(100svh - 72px);
    padding: 38px 0 30px;
  }

  .eyebrow {
    font-size: 12px;
  }

  .login-presentation h1 {
    font-size: clamp(52px, 17vw, 72px);
  }

  .intro {
    font-size: 18px;
  }

  .security-badge {
    display: none;
  }

  .login-card {
    padding: 30px 21px 28px;
    border-radius: 18px;
  }

  .login-card__icon {
    width: 73px;
    height: 73px;
  }

  .login-card__icon svg {
    width: 42px;
    height: 42px;
  }

  .login-card__heading h2 {
    font-size: 29px;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .login-submit {
    padding-left: 47px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
