/* Login page — visual language of debocha.yoshlarventures.uz:
   warm near-black ground, ember-orange glows, hairline grid, star dust,
   tight heavy display type, mono uppercase labels, glass cards. */
:root {
  --ink-900: #0c0908;
  --ink-850: #120a05;
  --ink-800: #1c1917;
  --ember: #ea580c;
  --ember-600: #c2410c;
  --ember-900: #7c2d12;
  --peach: #fdba74;
  --peach-100: #ffedd5;
  --cream: #f5f1e9;
  --white-86: rgba(255, 255, 255, 0.86);
  --white-60: rgba(255, 255, 255, 0.6);
  --white-40: rgba(255, 255, 255, 0.4);
  --white-14: rgba(255, 255, 255, 0.14);
  --white-07: rgba(255, 255, 255, 0.07);
  --danger: #ef4444;
  --live: #4ade80;
  --display: "Manrope", -apple-system, system-ui, sans-serif;
  --body: "Inter", -apple-system, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.lp {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-850));
  color: #fff;
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- background */
.lp-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lp-glow {
  position: absolute; border-radius: 50%; filter: blur(10px);
  animation: aurora 16s ease-in-out infinite;
  will-change: transform, opacity;
}
.lp-glow.g1 {
  width: 70vmax; height: 70vmax; left: -18vmax; top: -30vmax;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.42), rgba(234, 88, 12, 0) 62%);
}
.lp-glow.g2 {
  width: 60vmax; height: 60vmax; right: -22vmax; bottom: -26vmax;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.36), rgba(0, 0, 0, 0) 64%);
  animation-duration: 21s; animation-direction: reverse;
}
.lp-glow.g3 {
  width: 34vmax; height: 34vmax; left: 46%; top: 18%;
  background: radial-gradient(circle, rgba(253, 186, 116, 0.16), rgba(0, 0, 0, 0) 62%);
  animation-duration: 12s;
}
.lp-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%);
}
#lp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-grain {
  position: absolute; inset: -10%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 3px 3px; opacity: 0.35;
  animation: grain 9s steps(6) infinite;
}
.lp-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 30%, transparent 55%, rgba(12, 9, 8, 0.74) 100%);
}

@keyframes aurora {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate3d(-3%, 2%, 0) scale(1.12); opacity: 1; }
}
@keyframes grain {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, -1%); }
}

/* ---------------------------------------------------------------- top bar */
.lp-top { position: relative; z-index: 2; display: flex; justify-content: center; padding: 16px 16px 0; }
.lp-bar {
  width: 100%; max-width: 1040px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 14px;
  background: rgba(252, 251, 249, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  animation: rise 0.7s cubic-bezier(.2, .8, .2, 1) both;
}
.lp-brand { display: flex; align-items: center; gap: 10px; color: #09090b; text-decoration: none; }
.lp-brand img { width: 36px; height: 36px; border-radius: 10px; display: block; }
.lp-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.lp-brand strong { font: 700 17px/1.1 var(--display); letter-spacing: -0.02em; }
.lp-brand small { font: 500 10px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #78716c; }
.lp-lang { display: inline-flex; gap: 2px; padding: 3px; background: rgba(9, 9, 11, 0.06); border-radius: 999px; }
.lp-lang a {
  font: 600 12px/1 var(--mono); letter-spacing: 0.06em; color: #57534e; text-decoration: none;
  padding: 9px 13px; border-radius: 999px; transition: background .2s, color .2s;
}
.lp-lang a:hover { color: #09090b; }
.lp-lang a[aria-current="true"] { background: #09090b; color: #fff; }

/* ---------------------------------------------------------------- layout */
.lp-main {
  position: relative; z-index: 1; flex: 1;
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center; gap: 48px;
  padding: 48px 48px 56px;
}

/* ---------------------------------------------------------------- hero */
.lp-chip, .lp-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 500 11px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
}
.lp-chip {
  padding: 9px 14px; border-radius: 999px; color: var(--white-86);
  border: 1px solid var(--white-14); background: rgba(12, 9, 8, 0.5);
  animation: rise 0.7s 0.08s cubic-bezier(.2, .8, .2, 1) both;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.lp-h1 {
  margin: 26px 0 0;
  font: 800 clamp(48px, 7.2vw, 104px)/0.94 var(--display);
  letter-spacing: -0.045em;
}
.lp-h1 .line { display: block; animation: rise 0.8s cubic-bezier(.2, .8, .2, 1) both; }
.lp-h1 .line:nth-child(1) { animation-delay: 0.14s; }
.lp-h1 .line:nth-child(2) { animation-delay: 0.22s; }
.lp-h1 .words { display: grid; animation-delay: 0.3s; padding-bottom: 0.08em; }
.lp-h1 .word {
  grid-area: 1 / 1; white-space: nowrap;
  background: linear-gradient(90deg, var(--ember) 0%, var(--peach) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0;
  animation: word 12s cubic-bezier(.2, .8, .2, 1) infinite;
  animation-delay: calc(var(--i) * 3s);
}
@keyframes word {
  0% { opacity: 0; transform: translateY(0.34em); filter: blur(6px); }
  3%, 22% { opacity: 1; transform: translateY(0); filter: blur(0); }
  25%, 100% { opacity: 0; transform: translateY(-0.34em); filter: blur(6px); }
}
/* ---------------------------------------------------------------- card */
.lp-card-wrap { display: flex; justify-content: flex-end; animation: rise 0.9s 0.2s cubic-bezier(.2, .8, .2, 1) both; }
.lp-card {
  position: relative; width: 100%; max-width: 430px;
  padding: 34px 32px 32px;
  border-radius: 28px;
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(234, 88, 12, 0.14), rgba(0, 0, 0, 0) 60%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.18));
  border: 1px solid var(--white-14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  animation: float 7s ease-in-out infinite;
}
.lp-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg), rgba(234, 88, 12, 0), rgba(253, 186, 116, 0.7), rgba(234, 88, 12, 0) 30%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 8s linear infinite;
  opacity: 0.8;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.lp-kicker { color: var(--peach); }
.lp-card h2 { margin: 16px 0 22px; font: 800 30px/1.1 var(--display); letter-spacing: -0.035em; }
.lp-form { display: flex; flex-direction: column; gap: 16px; }
.lp-field { display: flex; flex-direction: column; gap: 8px; }
.lp-field > span:first-child { font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-60); }
.lp-field input {
  width: 100%; font: 500 16px/1.2 var(--body); color: #fff;
  padding: 15px 16px; border-radius: 14px;
  background: rgba(12, 9, 8, 0.55); border: 1px solid var(--white-14);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.lp-field input:hover { border-color: rgba(255, 255, 255, 0.24); }
.lp-field input:focus {
  outline: none; border-color: var(--ember); background: rgba(12, 9, 8, 0.75);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.22);
}
.lp-field input:-webkit-autofill {
  -webkit-text-fill-color: #fff; caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #1a100a inset; transition: background-color 9999s;
}
.lp-pass { position: relative; display: block; }
.lp-pass input { padding-right: 52px; }
.lp-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--white-60); cursor: pointer;
}
.lp-eye:hover, .lp-eye[aria-pressed="true"] { color: var(--peach); background: var(--white-07); }
.lp-eye:focus-visible { outline: 2px solid var(--ember); }
.lp-btn {
  margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 17px/1 var(--display); letter-spacing: -0.01em; color: #fff;
  padding: 18px 22px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, #f26a1f, var(--ember) 60%, var(--ember-600));
  box-shadow: 0 14px 34px rgba(234, 88, 12, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.lp-btn::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  animation: sheen 4.5s 1.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.lp-btn:hover { filter: brightness(1.06); box-shadow: 0 18px 40px rgba(234, 88, 12, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.lp-btn:hover svg { transform: translateX(3px); }
.lp-btn svg { transition: transform .2s; }
.lp-btn:active { transform: translateY(1px); }
.lp-btn:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }
.lp-btn[aria-busy="true"] { pointer-events: none; filter: saturate(0.7); }
.lp-error {
  margin: -6px 0 18px; padding: 12px 14px; border-radius: 12px;
  background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4); color: #fecaca; font-size: 14px;
  animation: shake .4s;
}
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .lp-main { grid-template-columns: minmax(0, 1fr); padding: 36px 24px 44px; gap: 40px; }
  .lp-card-wrap { justify-content: flex-start; }
  .lp-card { max-width: 520px; }
}
@media (max-width: 560px) {
  .lp-top { padding: 12px 12px 0; }
  .lp-brand small { display: none; }
  .lp-brand strong { font-size: 15px; }
  .lp-main { padding: 28px 16px 36px; }
  .lp-chip { font-size: 9px; letter-spacing: 0.12em; padding: 8px 11px; }
  .lp-h1 { font-size: 48px; margin-top: 20px; }
  .lp-card { padding: 26px 20px 24px; border-radius: 22px; animation: none; }
  .lp-card h2 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lp-h1 .word { opacity: 0; }
  .lp-h1 .word:first-child { opacity: 1; }
}
