/* login.css — docs/DESIGN-shadcn-ui.md §7 (F2: login ekrani + mobil to'siq, shadcn login-01 uslubi)
 * Ranglar faqat tokenlardan (light + dark). Karta/forma/tugma — components.css (.card .form-row .btn).
 * Logotip — Axion so'z-belgisi (ranglari --logo-ink / --logo-dot, shell.css §6).
 */

/* Login ekrani: auth-pending holatida ilova o'rniga ko'rinadi */
body.auth-pending #app { display: none; }
#login-screen { display: none; }
body.auth-pending #login-screen {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px;
  background: var(--muted); overflow: auto;       /* login-01: bg-muted */
}
:root.dark body.auth-pending #login-screen { background: var(--background); }

/* Yuqori o'ng burchak: til + tema */
.login-top { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 8px; }
.login-top #login-lang { display: flex; }

.login-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; max-width: 24rem; }
/* So'z-belgi (200px): harflar --logo-ink (och temada to'q, qorong'i temada och), nuqta --logo-dot.
   Pastdagi chekinish bilan kartagacha ~40px — taxminan harf balandligi (muhofaza maydoni). */
.login-brand { justify-content: center; margin: 0 0 16px; }

.login-card { width: 100%; margin: 0; }
.login-head { text-align: center; }
.login-head .card-title { font-size: 1.25rem; line-height: 1.2; }
.login-form { display: flex; flex-direction: column; }
.login-form .form-row input { width: 100%; }
.login-error { margin: 0 0 1rem; }
/* Oldingi sessiya bloklangani haqida xabar (login-page.js) — adm-alert komponenti, forma tepasida */
.login-notice { margin: 0 0 1rem; }
/* Karta ostidagi izoh */
.login-foot { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted-foreground); font-size: 0.75rem; text-align: center; }

/* ============================== Mobil/planshet to'sig'i ==============================
   Ilova xarita+jadval bilan ishlaydi, kichik ekranga moslashtirilmagan — <=1024px da ilova o'rniga shu xabar.
   Auth holatidan qat'i nazar (login ham, ilova ham) — sof CSS, JS'ga bog'liq emas. */
#mobile-gate { display: none; }
@media (max-width: 1024px) {
  #mobile-gate {
    position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px;
    background: var(--muted); overflow: auto;
  }
  :root.dark #mobile-gate { background: var(--background); }
  #app, #login-screen, body.auth-pending #login-screen { display: none !important; }
}
.mg-box {
  width: 100%; max-width: 24rem; padding: 32px 28px; border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--card); color: var(--card-foreground); box-shadow: var(--shadow-sm); text-align: center;
}
/* Axion so'z-belgisi (160px): harflar --logo-ink — och temada to'q (asosiy), qorong'ida och (inverse); nuqta --logo-dot.
   Pastki 32px + h2 yarim oralig'i (~3px) ≈ harf balandligi (~33px) — muhofaza maydoni. Kontur/soya yo'q (BRAND.md §2). */
.mg-box .logo-wordmark { width: 160px; margin: 0 auto 32px; color: var(--logo-ink); }
.mg-box h2 { margin-bottom: 8px; font-size: 1.125rem; line-height: 1.35; }
.mg-box p { color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.55; }
.mg-sub {
  display: flex; flex-direction: column; gap: 6px; margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: 0.8125rem;
}
