/* Miyo 登录页增强 */
html, body { background: #f3f4fa !important; }

/* 紫色面板里的品牌标记：用简洁的 M 标，避免宽 logo 被压扁 */
.brand-logo { display: none !important; }
.brand-identity::before {
  content: "M";
  width: 64px; height: 64px; flex: 0 0 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #9a9bcc 0%, #7b7cb4 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800; color: #fff;
  box-shadow: 0 10px 24px rgba(30, 32, 60, .16);
}

.miyo-back-home {
  position: fixed; left: 22px; top: 20px; z-index: 60;
  font-size: 13px;
}
.miyo-back-home a {
  color: #7c8198; text-decoration: none; background: rgba(255,255,255,.72);
  border: 1px solid #e6e8f2; border-radius: 20px; padding: 6px 12px;
  backdrop-filter: blur(8px);
}
.miyo-back-home a:hover { color: #7071a8; border-color: #d5d7ea; }

/* 登录卡片下方注册入口 */
.miyo-register-entry {
  margin: 6px 0 0; text-align: center; font-size: 12.5px; color: #9a9eb2;
}
.miyo-register-entry a { color: #7071a8; font-weight: 600; text-decoration: none; margin-left: 4px; }
.miyo-register-entry a:hover { text-decoration: underline; }

/* 注册弹窗 */
.miyo-register-mask {
  position: fixed; inset: 0; z-index: 9000; background: rgba(28, 30, 48, .42);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.miyo-register-mask.is-open { opacity: 1; pointer-events: auto; }
.miyo-register-card {
  position: relative; width: min(460px, 100%); max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 20px; padding: 28px 28px 22px;
  box-shadow: 0 30px 80px rgba(28, 30, 48, .28);
  transform: translateY(8px) scale(.98); transition: transform .2s;
}
.miyo-register-mask.is-open .miyo-register-card { transform: none; }
.miyo-register-card h2 { margin: 0 0 6px; font-size: 22px; color: #2b2d3a; }
.miyo-register-sub { margin: 0 0 18px; font-size: 12.5px; color: #8a8fa6; line-height: 1.7; }
.miyo-register-close {
  position: absolute; right: 16px; top: 14px; width: 30px; height: 30px;
  border: 0; border-radius: 8px; background: #f4f5fa; color: #7c8198;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.miyo-register-card form { display: grid; gap: 12px; }
.miyo-register-card label {
  display: grid; gap: 6px; font-size: 12.5px; color: #4d5168; font-weight: 600;
}
.miyo-register-card input[type="text"], .miyo-register-card input[type="password"] {
  box-sizing: border-box; width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid #e2e4ef; border-radius: 9px; outline: none;
  font-size: 13px; color: #363a4e; font-family: inherit;
}
.miyo-register-card input:focus { border-color: #b7b8d8; box-shadow: 0 0 0 3px rgba(139,140,190,.12); }
.miyo-register-agree {
  display: flex !important; align-items: center; gap: 7px; font-weight: 400 !important;
  color: #7c8198 !important; font-size: 12px !important; line-height: 1.5;
}
.miyo-register-agree input { width: 15px; height: 15px; accent-color: #8b8cbe; }
.miyo-register-agree a { color: #7071a8; text-decoration: none; }
.miyo-register-submit {
  height: 44px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #9495c8, #7b7cb4); color: #fff;
  font-size: 14px; font-weight: 600; font-family: inherit;
  box-shadow: 0 8px 20px rgba(139,140,190,.28);
}
.miyo-register-submit:active { transform: translateY(1px); }
.miyo-register-alt { text-align: center; margin-top: 14px; font-size: 12.5px; color: #9a9eb2; }
.miyo-register-alt a { color: #7071a8; text-decoration: none; font-weight: 600; }
.miyo-register-error { min-height: 18px; font-size: 12px; color: #d05a5a; margin-top: -2px; }

@media (max-width: 768px) {
  .miyo-back-home { left: 14px; top: 14px; }
  .miyo-back-home a { font-size: 12px; padding: 5px 10px; }
  .miyo-register-card { padding: 22px 20px 18px; border-radius: 16px; }
  .miyo-register-card h2 { font-size: 20px; }
}
