.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 24%, #1b2231 0, #0a0c10 58%);
}

.landing-bg .landing-video,
.landing-bg .landing-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-bg .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 12, 16, 0.55) 0%,
    rgba(15, 20, 35, 0.42) 45%,
    rgba(10, 12, 16, 0.62) 100%
  );
}

.landing-bg .grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.landing-content {
  position: relative;
  z-index: 1;
}

.landing-title {
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.landing-title-flow,
.landing-title-canvas,
.landing-title-video {
  display: inline-block;
  color: transparent !important;
  background-image: linear-gradient(
    90deg,
    #4f6ef7 0%,
    #a855f7 18%,
    #ec4899 36%,
    #f59e0b 54%,
    #22d3ee 72%,
    #4f6ef7 100%
  ) !important;
  background-size: 400% 100%;
  background-repeat: repeat;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: landingGradientFlow 4s linear infinite;
}

@keyframes landingGradientFlow {
  0% { background-position: 0% center; }
  100% { background-position: 400% center; }
}

.landing-fullname,
.landing-subtitle {
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.landing-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 20, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.landing-card:hover {
  border-color: rgba(99, 130, 255, 0.35);
  background: rgba(12, 14, 20, 0.62);
}

.landing-glow-wrap {
  position: relative;
  border-radius: 1.25rem;
}

.landing-glow-wrap > .landing-card {
  position: relative;
  z-index: 1;
}

.landing-glow-wrap::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 1.35rem;
  padding: 2px;
  background: linear-gradient(
    90deg,
    rgba(79, 110, 247, 0.85),
    rgba(168, 85, 247, 0.85),
    rgba(236, 72, 153, 0.85),
    rgba(34, 211, 238, 0.85),
    rgba(79, 110, 247, 0.85)
  );
  background-size: 400% 100%;
  animation: landingGradientFlow 4s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.45;
  pointer-events: none;
  z-index: 2;
}

.landing-glow-wrap::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 1.5rem;
  background: linear-gradient(
    90deg,
    rgba(79, 110, 247, 0.7),
    rgba(168, 85, 247, 0.7),
    rgba(236, 72, 153, 0.7),
    rgba(34, 211, 238, 0.7),
    rgba(79, 110, 247, 0.7)
  );
  background-size: 400% 100%;
  animation: landingGradientFlow 4s linear infinite;
  filter: blur(14px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.landing-glow-wrap:hover::before {
  opacity: 0.6;
}

.landing-glow-wrap:hover::after {
  opacity: 0.32;
}

.landing-btn {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
}

.landing-login-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.92);
}

.landing-login-input {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.8rem 0.95rem;
  color: #f8fafc;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.landing-login-input-password {
  padding-right: 2.6rem;
}

.landing-login-input:focus {
  border-color: rgba(99, 130, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.18);
}

.landing-password-wrap {
  position: relative;
}

.landing-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(226, 232, 240, 0.38);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, opacity 0.15s;
}

.landing-password-toggle:hover {
  color: rgba(226, 232, 240, 0.62);
  background: rgba(255, 255, 255, 0.04);
}

.landing-password-toggle:focus-visible {
  outline: 1px solid rgba(148, 163, 184, 0.45);
  outline-offset: 1px;
}

.landing-password-toggle svg {
  display: none;
  pointer-events: none;
}

.landing-password-toggle .eye-closed {
  display: block;
}

.landing-password-toggle.is-visible .eye-closed {
  display: none;
}

.landing-password-toggle.is-visible .eye-open {
  display: block;
}

.landing-login-error {
  font-size: 0.8125rem;
  color: #fecaca;
}

.landing-login-error.is-ok {
  color: #bbf7d0;
}

.landing-auth-switch {
  font-size: 0.8125rem;
  color: rgba(226, 232, 240, 0.72);
}

.landing-auth-switch a {
  color: #c4d4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.landing-auth-switch a:hover {
  color: #ffffff;
}

.landing-code-row {
  display: flex;
  gap: 0.6rem;
}

.landing-code-row .landing-login-input {
  min-width: 0;
  flex: 1;
}

.landing-code-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0 0.9rem;
  color: #e2e8f0;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.landing-code-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.landing-code-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.landing-pro-badge {
  font-size: 0.8125rem;
}
