/* =========================
   Toast (2FA 产品级提示 - 完整版)
   ========================= */

/* 宿主容器 */
#toastHost{
  position: fixed;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  z-index: 10050;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}
#toastHost.show{ opacity: 1; }

/* Toast 本体 */
.toast2fa{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;

  color: rgba(255,255,255,.96);
  background: rgba(15,23,42,.72);
  border: 1px solid rgba(255,255,255,.18);

  box-shadow: 0 14px 40px rgba(15,23,42,.22);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);

  transform: translateY(-10px) scale(.98);
  transition: transform .18s ease;
}
#toastHost.show .toast2fa{
  transform: translateY(0) scale(1);
}

/* 文案 */
.toast2fa .toast-txt{
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .3px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}

/* 图标容器（统一几何居中） */
.toast2fa .toast-ic{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

/* =========================
   成功态（绿色玻璃）
   ========================= */
.toast-ok{
  background: linear-gradient(
    135deg,
    rgba(34,197,94,.95),
    rgba(16,185,129,.95)
  );
  border: 1px solid rgba(255,255,255,.35);
  box-shadow:
    0 18px 48px rgba(16,185,129,.45),
    inset 0 1px 0 rgba(255,255,255,.25);
}

.toast-ok .toast-ic{
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.35);
}

/* 对勾（严格居中，不歪） */
.toast-ok .toast-ic::before{
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}

/* =========================
   警告态（请输入密钥）
   ========================= */
.toast-warn{
  background: linear-gradient(
    135deg,
    rgba(17,24,39,.92),
    rgba(30,41,59,.92)
  );
  border: 1px solid rgba(255,220,120,.32);
  box-shadow:
    0 16px 40px rgba(17,24,39,.45),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.toast-warn .toast-ic{
  background: rgba(255,220,120,.22);
  border: 1px solid rgba(255,220,120,.35);
}

/* 叹号（居中） */
.toast-warn .toast-ic::before{
  content: "";
  width: 2.5px;
  height: 10px;
  background: #fff;
  border-radius: 2px;
}
.toast-warn .toast-ic::after{
  content: "";
  position: absolute;
  bottom: 4px;
  width: 2.5px;
  height: 2.5px;
  background: #fff;
  border-radius: 50%;
}

/* =========================
   移动端位置微调
   ========================= */
@media (max-width:768px){
  #toastHost{ top: 72px; }
  .toast2fa{
    padding: 11px 12px;
    border-radius: 13px;
  }
}
