/* ЛК-specific styles. Layered on top of the bot's /shared/style.css, which
   provides the colour tokens (--bg, --accent, --card, etc.) and shared
   components (.card, .btn, .status-card, .plans, .install-grid, .toast). */

.lk-center {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.lk-center.active { display: flex; }

/* Spinner */
.lk-spinner {
  width: 34px; height: 34px;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: lk-spin 0.8s linear infinite;
}
@keyframes lk-spin { to { transform: rotate(360deg); } }

/* Constrain panels on wide (desktop) screens — this is a real web page now,
   not only a phone-sized Telegram Mini App. */
#login, #panel, #install-screen { max-width: 480px; margin: 0 auto; }

/* ─── Auth card ─────────────────────────────────────────────── */
.lk-auth-card {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 8px;
}
.lk-auth-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.lk-auth-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 18px;
  line-height: 1.4;
}

.lk-input {
  width: 100%;
  padding: 15px 16px;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.3px;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.lk-input::placeholder { color: var(--text-muted); }
.lk-input:focus {
  border-color: rgba(34,197,94,0.45);
  background: rgba(0,0,0,0.4);
}
.lk-input-code {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 10px;
  padding-left: 26px; /* compensate letter-spacing centering */
}

.lk-error {
  font-size: 13px;
  color: #ef4444;
  margin-top: 4px;
  min-height: 16px;
}
.lk-dev-hint {
  font-size: 12px;
  color: #fbbf24;
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(251,191,36,0.08);
  border: 1px dashed rgba(251,191,36,0.3);
  border-radius: 8px;
}

.lk-link-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 12px;
}
.lk-link-back svg { flex-shrink: 0; }

/* Slightly tighter ghost button spacing in the auth flow */
#btn-resend-code { margin-top: 8px; }

/* ─── Link Telegram button ──────────────────────────────────── */
.lk-link-tg {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

/* ─── Account row ───────────────────────────────────────────── */
.lk-account-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}
.lk-account-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}
.lk-logout {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.lk-logout:active { background: rgba(255,255,255,0.06); color: #ef4444; }
