
/* ═══════════════════════════════════════════════════════
   MTU2 QOQON — ULTRA PREMIUM LOGIN v3.0
   2026 · Fully self-contained · UZ / RU / EN
═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --brand-glow: rgba(37,99,235,.22);
  --bg: #080f1e;
  --surface: rgba(255,255,255,.06);
  --surface-hover: rgba(255,255,255,.09);
  --border: rgba(255,255,255,.1);
  --border-focus: rgba(99,157,255,.7);
  --text: #f0f4ff;
  --text-muted: #8ba3c7;
  --text-label: #c5d5ef;
  --input-bg: rgba(255,255,255,.055);
  --success: #22c55e;
  --danger: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --trans: .2s ease;
}

/* ── LIGHT THEME ──────────────────────────────────── */
[data-theme="light"] {
  --bg: #f0f4fc;
  --surface: rgba(255,255,255,.9);
  --surface-hover: rgba(255,255,255,1);
  --border: rgba(30,60,120,.12);
  --border-focus: rgba(37,99,235,.55);
  --text: #0f1d35;
  --text-muted: #4a6080;
  --text-label: #2c4268;
  --input-bg: rgba(255,255,255,.8);
  --brand-glow: rgba(37,99,235,.12);
}

html, body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── AURORA CANVAS ────────────────────────────────── */
#aurora-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .7;
}


/* ── TOP BAR ──────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(8,15,30,.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}


.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.topbar-logo {
  width: 36px; height: 36px;
  background: var(--brand);
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.topbar-logo svg { width: 20px; height: 20px; color: #fff; }
.topbar-name { font-size: 15px; font-weight: 650; color: var(--text); }
.topbar-tag { font-size: 12px; color: var(--text-muted); }

.topbar-controls { display: flex; align-items: center; gap: 8px; }

.ctrl-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font: 550 13px/1 inherit;
  cursor: pointer;
  transition: background var(--trans), border-color var(--trans), color var(--trans);
  white-space: nowrap;
}
.ctrl-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.ctrl-btn:hover { background: var(--surface-hover); color: var(--text); border-color: rgba(255,255,255,.18); }


/* Lang dropdown */
.lang-wrap { position: relative; }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: #111c30;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  z-index: 200;
  display: none;
}

.lang-menu.open { display: block; }
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font: 500 14px/1.4 inherit;
  text-align: left;
  cursor: pointer;
  transition: background var(--trans);
}
.lang-opt:hover { background: var(--surface); color: var(--text); }
.lang-opt.active { color: var(--text); font-weight: 650; }
.lang-flag { font-size: 18px; line-height: 1; }

/* ── MAIN LAYOUT ──────────────────────────────────── */
.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 480px;
  padding-top: 65px; /* topbar height */
}

/* ── LEFT HERO ────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
  gap: 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #60a5fa;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: #60a5fa;
  border-radius: 2px;
}



.hero-title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-title span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 48px;
}

.hero-features { display: grid; gap: 20px; }
.hero-feat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feat-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(99,157,255,.12);
  border: 1px solid rgba(99,157,255,.2);
  border-radius: 10px;
  color: #60a5fa;
}

.feat-icon svg { width: 20px; height: 20px; }
.feat-text strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 3px;
}
.feat-text p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ── RIGHT PANEL — CARD ───────────────────────────── */
.card-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 48px 40px;
  border-left: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}


.card-inner {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  animation: fadeUp .4s ease both;
}

.card-header { margin-bottom: 36px; }
.card-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,.25), rgba(167,139,250,.2));
  border: 1px solid rgba(99,157,255,.25);
  border-radius: 14px;
  margin-bottom: 24px;
  color: #60a5fa;
}

.card-icon svg { width: 28px; height: 28px; }

.card-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.8px;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
}
.card-header p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── FORM ─────────────────────────────────────────── */
.field { margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-label);
  margin-bottom: 8px;
}
.field-wrap { position: relative; }
.field-icon {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
.field-input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 44px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: 500 15px/1 inherit;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans), background var(--trans);
}
.field-input::placeholder { color: var(--text-muted); opacity: .6; }
.field-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--brand-glow);
  background: var(--surface);
}
.field-input:disabled { opacity: .5; cursor: not-allowed; }

.pw-toggle {
  position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  transition: color var(--trans);
}
.pw-toggle:hover { color: var(--text); }
.pw-toggle svg { width: 18px; height: 18px; }

/* ── SUBMIT BUTTON ────────────────────────────────── */
.submit-btn {
  width: 100%;
  height: 52px;
  margin-top: 4px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: 0;
  border-radius: var(--radius-sm);
  color: #fff;
  font: 650 15px/1 inherit;
  letter-spacing: .2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: opacity var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 4px 20px rgba(37,99,235,.35);
}
.submit-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
  opacity: 0;
  transition: opacity var(--trans);
}
.submit-btn:hover::before { opacity: 1; }
.submit-btn:hover { box-shadow: 0 6px 28px rgba(37,99,235,.5); transform: translateY(-1px); }
.submit-btn:active:not(:disabled) { transform: translateY(0); }
.submit-btn:disabled { opacity: .55; cursor: wait; box-shadow: none; }

.btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.submit-btn.loading .btn-text { display: none; }
.submit-btn.loading .btn-spinner { display: block; }

/* ── STATUS ───────────────────────────────────────── */
.login-status {
  min-height: 20px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  border-radius: 8px;
  padding: 0;
  transition: all var(--trans);
}
.login-status.error {
  color: var(--danger);
  background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.2);
  padding: 12px 14px;
}
.login-status.success {
  color: var(--success);
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.2);
  padding: 12px 14px;
}

/* ── FOOTER NOTE ──────────────────────────────────── */
.card-foot {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.card-foot svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

/* ── ANIMATIONS ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 960px) {
  .login-wrap { grid-template-columns: 1fr; }
  .hero { display: none; }
  .card-panel {
    border-left: 0;
    min-height: calc(100vh - 65px);
    background: transparent;
    backdrop-filter: none;
    padding: 32px 24px;
  }
  .card-inner { max-width: 440px; }
}
@media (max-width: 480px) {
  .topbar { padding: 12px 16px; }
  .topbar-tag { display: none; }
  .card-panel { padding: 24px 20px; }
  .card-header h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
