/* Betzetu — Professional Landing / Login */
body.landing-visible {
  overflow-x: hidden;
}

body.landing-visible .page#app-wrapper {
  display: none !important;
}

.landing-page {
  --landing-bg: #060b14;
  --landing-surface: #0c1220;
  --landing-card: rgba(15, 23, 42, 0.72);
  --landing-border: rgba(148, 163, 184, 0.14);
  --landing-text: #f1f5f9;
  --landing-muted: #94a3b8;
  --landing-accent: #3b82f6;
  --landing-accent-2: #06b6d4;
  --landing-glow: rgba(59, 130, 246, 0.35);
  --landing-radius: 16px;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--landing-bg);
  color: var(--landing-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.landing-page *,
.landing-page *::before,
.landing-page *::after {
  box-sizing: border-box;
}

.landing-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.landing-bg__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(59, 130, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(6, 182, 212, 0.14), transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(99, 102, 241, 0.12), transparent 45%),
    linear-gradient(180deg, #060b14 0%, #0a101c 50%, #060b14 100%);
}

.landing-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, black 20%, transparent 75%);
}

.landing-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: landing-float 18s ease-in-out infinite;
}

.landing-bg__orb--1 {
  width: 420px;
  height: 420px;
  top: -8%;
  left: -5%;
  background: #2563eb;
}

.landing-bg__orb--2 {
  width: 320px;
  height: 320px;
  bottom: 10%;
  right: 35%;
  background: #0891b2;
  animation-delay: -6s;
}

@keyframes landing-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.05); }
}

.landing-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 100vh;
}

/* Hero */
.landing-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem 2rem 3.5rem;
  border-right: 1px solid var(--landing-border);
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.35));
}

.landing-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.landing-brand__name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landing-brand__tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--landing-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-hero__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  padding: 2rem 0 3rem;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 14px 6px 10px;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  animation: landing-fade-up 0.6s ease both;
}

.landing-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
  animation: landing-pulse 2s ease infinite;
}

@keyframes landing-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.landing-headline {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  animation: landing-fade-up 0.6s ease 0.08s both;
}

.landing-headline span {
  background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-subhead {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--landing-muted);
  max-width: 520px;
  animation: landing-fade-up 0.6s ease 0.16s both;
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 2.25rem;
  animation: landing-fade-up 0.6s ease 0.24s both;
}

.landing-stat {
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--landing-border);
  backdrop-filter: blur(12px);
}

.landing-stat__value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.landing-stat__label {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--landing-muted);
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  animation: landing-fade-up 0.6s ease 0.32s both;
}

.landing-feature {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--landing-border);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.landing-feature:hover {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(30, 41, 59, 0.5);
  transform: translateY(-2px);
}

.landing-feature__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.15rem;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
}

.landing-feature__title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.landing-feature__desc {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--landing-muted);
}

.landing-hero__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 1.5rem;
  border-top: 1px solid var(--landing-border);
  font-size: 0.75rem;
  color: var(--landing-muted);
}

.landing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.landing-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-trust i {
  color: #64748b;
}

/* Auth panel */
.landing-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(8, 12, 22, 0.65);
  backdrop-filter: blur(20px);
}

.landing-auth__inner {
  width: 100%;
  max-width: 400px;
  animation: landing-fade-up 0.7s ease 0.2s both;
}

.landing-auth__header {
  margin-bottom: 1.75rem;
}

.landing-auth__header h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.landing-auth__header p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--landing-muted);
}

.landing-form-card {
  padding: 28px;
  border-radius: var(--landing-radius);
  background: var(--landing-card);
  border: 1px solid var(--landing-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 48px rgba(0, 0, 0, 0.35);
}

.landing-field {
  margin-bottom: 1.125rem;
}

.landing-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #cbd5e1;
}

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

.landing-input-wrap > i.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #64748b;
  pointer-events: none;
}

.landing-field input {
  display: block;
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-field input::placeholder {
  color: #64748b;
}

.landing-field input:focus {
  outline: none;
  border-color: var(--landing-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.landing-field input:focus + .landing-pw-toggle,
.landing-field input:focus ~ .field-icon {
  color: #94a3b8;
}

.landing-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  font-size: 1rem;
  line-height: 1;
}

.landing-pw-toggle:hover {
  color: #cbd5e1;
}

.landing-error {
  display: none;
  margin-bottom: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fecaca;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.landing-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  margin-top: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.landing-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.landing-submit:active:not(:disabled) {
  transform: translateY(0);
}

.landing-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.landing-auth__meta {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.5;
}

.landing-auth__meta a {
  color: #93c5fd;
  text-decoration: none;
}

.landing-version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--landing-border);
}

@keyframes landing-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .landing-shell {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    border-right: 0;
    border-bottom: 1px solid var(--landing-border);
    padding: 2rem 1.5rem 1.5rem;
  }

  .landing-hero__main {
    padding: 1.5rem 0 2rem;
  }

  .landing-features {
    grid-template-columns: 1fr;
  }

  .landing-auth {
    padding: 2rem 1.5rem 2.5rem;
  }
}

@media (max-width: 640px) {
  .landing-stats {
    grid-template-columns: 1fr;
  }

  .landing-hero__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-form-card {
    padding: 22px 20px;
  }
}
