/* ==== 登录弹层 & 移动端适配 ==== */
.auth-overlay {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  background: #111318;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* 终端容器宽度随视口变化而自适应 */
.auth-terminal {
  width: min(95vw, 420px);
  max-width: 95vw;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* 基础行样式 */
.auth-line {
  margin-bottom: 8px;
  animation: auth-type 0.3s ease-out;
}

/* 状态颜色变量（在 desktop-host.css 已定义） */
.auth-dim { color: var(--hint); }
.auth-success { color: var(--success); font-weight: bold; }
.auth-user-input { color: var(--link); }

/* 输入框所在行 */
.auth-input-line { display: flex; align-items: center; gap: 8px; width: 100%; }

/* 光标与前缀 */
.auth-prompt { color: var(--authority); }

/* 输入框自身样式 */
.auth-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: monospace;
  font-size: 14px;
  outline: none;
  padding: 4px 0;
}

/* 打字动画 */
@keyframes auth-type {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
