/* Emma kirish sahifasi (2026-11-03) — kanvas 113 «A · Kirish». v2 tokenlar. Forma nomlari/ID'lari o'zgarmagan (auth.html JS). */
:root {
  --bg: #0b0b0d; --sb: #0f0f12; --card: #131316; --card2: #18181c;
  --line: rgba(255, 255, 255, 0.07); --line2: rgba(255, 255, 255, 0.12);
  --ink: #eceef2; --ink2: #c3c8d1; --muted: #a9b0bc; --faint: #8b93a1; --label: #7c8492;
  --acc: #8b6cff; --acc-ink: #c1adff; --good: #34d399; --bad: #f87171;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.45; }
h1, h2, p { margin: 0; }
button, input { font-family: inherit; }
.au { min-height: 100vh; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); }
.au-main { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 48px 56px; max-width: 640px; width: 100%; margin: 0 auto; }
.au-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; width: fit-content; }
.au-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--acc); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.au-live { margin-left: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(52, 211, 153, .12); color: var(--good); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.au-h { display: flex; flex-direction: column; gap: 8px; }
.au-h h1 { font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }
.au-h p { font-size: 15px; color: var(--muted); line-height: 1.5; }
.auth-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--sb); border: 1px solid var(--line); }
.auth-switcher:has(> :only-child) { display: none; }
.auth-switch-btn { height: 38px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 800; cursor: pointer; transition: background .15s, color .15s; }
.auth-switch-btn.active { background: var(--acc); color: #fff; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.inline-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink2); }
.auth-input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--sb); border: 1px solid var(--line2); color: var(--ink); font-size: 14.5px; outline: none; transition: border-color .15s, box-shadow .15s; }
.auth-input::placeholder { color: var(--label); }
.auth-input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(139, 108, 255, .18); }
.auth-input-wrap { position: relative; display: flex; }
.auth-input-wrap .auth-input { padding-right: 48px; }
.auth-eye-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 8px; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; opacity: .7; }
.auth-eye-btn:hover { background: rgba(255, 255, 255, .06); opacity: 1; }
.auth-eye-icon { width: 18px; height: 18px; display: none; }
.auth-eye-btn[data-state="hidden"] .eye-on { display: block; }
.auth-eye-btn[data-state="shown"] .eye-off { display: block; }
.auth-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.auth-check-row { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.auth-check-row input { width: 16px; height: 16px; accent-color: var(--acc); margin: 0; }
.au-help { color: var(--faint); text-decoration: none; font-weight: 600; }
.auth-actions { display: flex; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; border-radius: 12px; font-weight: 800; font-size: 14.5px; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(139, 108, 255, .35); }
.auth-bottom-note { font-size: 13px; color: var(--muted); text-align: center; }
.auth-bottom-link { background: none; border: 0; color: var(--acc-ink); font-weight: 700; cursor: pointer; padding: 0; font-size: 13px; }
.au-invite { padding: 12px 14px; border-radius: 12px; background: rgba(139, 108, 255, .1); border: 1px solid rgba(139, 108, 255, .3); font-size: 13.5px; line-height: 1.5; color: #ddd3ff; }
.message.error { padding: 11px 14px; border-radius: 12px; background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; font-size: 13.5px; line-height: 1.45; }
.auth-social-error[hidden] { display: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--label); font-size: 12.5px; font-weight: 700; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .08); }
.auth-social-block { display: flex; flex-direction: column; gap: 14px; }
.auth-social-stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; align-items: stretch; }
.auth-provider-card { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.google-auth-button-slot { display: flex; justify-content: center; width: 100%; }
.google-auth-button-slot > div { width: 100% !important; }
.auth-telegram-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; border-radius: 12px; background: var(--sb); color: var(--ink); border: 1px solid var(--line2); font-size: 14.5px; font-weight: 800; cursor: pointer; transition: border-color .15s, background .15s; }
.auth-telegram-btn:hover { border-color: var(--acc); background: var(--card); }
.auth-telegram-btn-icon img { width: 18px; height: 18px; display: block; }
.auth-telegram-btn-spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.auth-telegram-btn.is-loading .auth-telegram-btn-spinner { display: inline-block; }
.auth-telegram-btn.is-loading { opacity: .75; pointer-events: none; }
.au-fine { font-size: 12px; color: var(--label); line-height: 1.5; }
.au-fine a { color: var(--faint); }

/* O'ng panel — jonli ko'rinish */
.au-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px; background: linear-gradient(160deg, #101014, #0f1420 60%, #141222); border-left: 1px solid var(--line); }
.au-glow { position: absolute; inset: -30%; background: radial-gradient(closest-side, rgba(139, 108, 255, .25), transparent 70%); filter: blur(30px); animation: orbit 26s linear infinite; pointer-events: none; }
.au-side > * { position: relative; }
.au-side-h { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.au-side-h small { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--faint); }
.au-side-h h2 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.au-panel { max-width: 520px; border-radius: 18px; background: var(--card); border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.au-panel-t { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.au-jonli { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--good); font-weight: 700; }
.au-jonli i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); animation: pulse 2s infinite; }
.au-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.au-kpi { padding: 11px; border-radius: 11px; background: var(--card2); border: 1px solid rgba(255, 255, 255, .06); }
.au-kpi small { font-size: 10.5px; color: var(--label); font-weight: 700; }
.au-kpi div { font-size: 20px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.au-kpi div > span + span { font-size: 11px; color: var(--faint); font-weight: 600; }
.au-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; align-items: end; height: 64px; padding: 0 2px; }
.au-bars i { display: block; border-radius: 3px; background: rgba(139, 108, 255, .4); transform-origin: bottom; animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.au-bars i:last-child { background: var(--acc); }
.au-tg { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #182533; border: 1px solid rgba(34, 211, 238, .18); font-size: 13px; line-height: 1.4; animation: slidein .5s ease both; }
.au-tg i { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: #2aabee; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 11px; font-style: normal; }
.au-tg span { display: flex; flex-direction: column; gap: 2px; }
.au-tg span span { color: var(--ink2); }
.au-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); max-width: 520px; }
.au-list li { display: flex; gap: 8px; }
.au-list li::before { content: "✓"; color: var(--acc); font-weight: 800; }
@keyframes orbit { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes slidein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .au-side { display: none; }
  .au-main { padding: 28px 16px; justify-content: flex-start; }
  .au-h h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
