/* ═══════════════════════════════════════════════════════════════════
   Zeros2One iOS — 自研登录页样式
   深色科技风 · 0→1 品牌 · Inter 字体
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --z-cyan:   #0ea5e9;
  --z-green:  #0d9488;
  --z-blue:   #2563eb;
  --z-violet: #7c3aed;
  --z-bg0:    #ffffff;
  --z-bg1:    #f6f8fa;
  --z-text:   #1e293b;
  --z-dim:    #64748b;
  --z-line:   rgba(15,23,42,.045);
  --z-glass:  rgba(255,255,255,.72);
}

/* ── 页面底层 ── */
html, body { margin: 0; padding: 0; }
.z2o-login-root {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  overflow: auto; background: #f6f8fa; padding: 24px 0; box-sizing: border-box;
}
.z2o-login-root .z2o-brand { position: fixed; top: 26px; left: 30px; }

body:has(.z2o-bg) {
  background: #f6f8fa !important;
  color: var(--z-text) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif !important;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 容器（路由挂载点） */
.z2o-auth-root {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   背景层
   ═══════════════════════════════════════════════════════════════ */
.z2o-bg {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(1000px 720px at 12% 4%,  rgba(14,165,233,.10), transparent 62%),
    radial-gradient(880px 660px at 90% 96%, rgba(124,58,237,.08), transparent 64%),
    radial-gradient(700px 560px at 50% 48%, rgba(13,148,136,.06), transparent 68%),
    linear-gradient(168deg, #ffffff 0%, #f6f8fa 55%, #eef2f7 100%);
  animation: z2o-aurora 26s ease-in-out infinite alternate;
}
@keyframes z2o-aurora {
  0%   { transform: scale(1)    translate(0,0); }
  50%  { transform: scale(1.07) translate(-1.6%,1.2%); }
  100% { transform: scale(1.03) translate(1.2%,-1%); }
}

/* 科技网格 */
.z2o-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--z-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--z-line) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 92% 82% at 50% 50%, #000 22%, transparent 78%);
  mask-image: radial-gradient(ellipse 92% 82% at 50% 50%, #000 22%, transparent 78%);
  opacity: .9;
}

/* 浮动光球 */
.z2o-orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: -2;
  filter: blur(90px);
}
.z2o-orb.o1 {
  width: 460px; height: 460px; top: -140px; left: -120px;
  background: radial-gradient(circle, rgba(14,165,233,.10), transparent 70%);
  animation: z2o-float1 20s ease-in-out infinite;
}
.z2o-orb.o2 {
  width: 420px; height: 420px; bottom: -130px; right: -110px;
  background: radial-gradient(circle, rgba(124,58,237,.08), transparent 70%);
  animation: z2o-float2 24s ease-in-out infinite;
}
@keyframes z2o-float1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(60px,50px) scale(1.12); }
}
@keyframes z2o-float2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-55px,-45px) scale(1.1); }
}

/* ═══════════════════════════════════════════════════════════════
   左上角品牌
   ═══════════════════════════════════════════════════════════════ */
.z2o-brand {
  position: fixed; top: 26px; left: 30px; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  animation: z2o-drop .55s cubic-bezier(.22,.75,.28,1) both;
}
.z2o-brand-logo { width: 56px; height: 56px; display: block; }
@keyframes z2o-brand-anim {
  0%   { transform: scale(1) rotate(0deg);      opacity: 1;   filter: drop-shadow(0 0 10px rgba(13,148,136,.45)); }
  20%  { transform: scale(1.10) rotate(-5deg);  opacity: .92; filter: drop-shadow(0 0 20px rgba(14,165,233,.65)); }
  45%  { transform: scale(0.95) rotate(5deg);   opacity: 1;   filter: drop-shadow(0 0 14px rgba(124,58,237,.55)); }
  70%  { transform: scale(1.07) rotate(-3deg);  opacity: .95; filter: drop-shadow(0 0 18px rgba(13,148,136,.6)); }
  100% { transform: scale(1) rotate(0deg);      opacity: 1;   filter: drop-shadow(0 0 10px rgba(13,148,136,.45)); }
}
.z2o-brand-text {
  animation: z2o-brand-text-anim 2.6s ease-in-out infinite;
}
@keyframes z2o-brand-text-anim {
  0%, 100% { opacity: 1; }
  50%      { opacity: .82; }
}
/* 悬停时加速 */
.z2o-brand:hover .z2o-brand-logo { width: 56px; height: 56px; display: block; }
.z2o-brand-text {
  font-size: 17px; font-weight: 600; letter-spacing: .01em; color: #1e293b;
}
.z2o-brand-text em {
  font-style: normal; font-weight: 400; color: var(--z-green); margin-left: 4px;
}
@keyframes z2o-drop {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   登录卡片
   ═══════════════════════════════════════════════════════════════ */
.z2o-card {
  position: relative;
  width: 100%; max-width: 420px;
  margin: 0 20px; padding: 42px 40px 34px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 22px;
  box-shadow:
    0 1px 3px rgba(15,23,42,.05),
    0 14px 40px rgba(15,23,42,.09),
    0 0 0 1px rgba(255,255,255,.9) inset;
  animation: z2o-card-in .68s cubic-bezier(.22,.75,.28,1) both;
}
@keyframes z2o-card-in {
  from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(7px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* 顶部流光边 */
.z2o-card-line {
  position: absolute; top: 0; left: 13%; right: 13%; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--z-cyan), var(--z-green), var(--z-violet), transparent);
  border-radius: 2px; opacity: .9;
}

/* 徽标 */
.z2o-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; margin-bottom: 20px;
  font-size: 10px; font-weight: 600; letter-spacing: .18em;
  color: #0d9488;
  background: rgba(13,148,136,.07);
  border: 1px solid rgba(13,148,136,.18);
  border-radius: 100px;
}
.z2o-badge i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--z-green); box-shadow: 0 0 0 3px rgba(13,148,136,.14);
  animation: z2o-pulse 1.6s ease-in-out infinite;
}
@keyframes z2o-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .35; transform: scale(.75); }
}

.z2o-title {
  margin: 0 0 8px; font-size: 27px; font-weight: 700;
  letter-spacing: -.015em; color: #0f172a; line-height: 1.25;
}
.z2o-desc {
  margin: 0 0 30px; font-size: 13.5px; color: var(--z-dim); line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   表单
   ═══════════════════════════════════════════════════════════════ */
.z2o-form { display: block; }
.z2o-field { margin-bottom: 18px; }
.z2o-field > label {
  display: block; margin-bottom: 7px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
  color: rgba(203,213,225,.85);
}

.z2o-iw {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.z2o-iw:hover { border-color: #cbd5e1; background: #ffffff; }
.z2o-iw.focus {
  border-color: var(--z-green);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13,148,136,.10);
}
.z2o-iw.is-error { border-color: rgba(248,113,113,.7); }

.z2o-ic {
  display: flex; flex: none; color: #94a3b8;
  transition: color .22s ease;
}
.z2o-iw.focus .z2o-ic { color: var(--z-green); }

.z2o-iw input {
  flex: 1 1 auto; min-width: 0; height: 100%;
  background: transparent !important; border: none !important; outline: none !important;
  color: #0f172a !important; font-size: 14px !important;
  font-family: inherit !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.z2o-iw input::placeholder { color: #94a3b8; }
.z2o-iw input:disabled { opacity: .55; }
.z2o-iw input:-webkit-autofill,
.z2o-iw input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0f172a !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 9999s ease-out;
}

.z2o-eye {
  display: flex; flex: none; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0;
  background: none; border: none; cursor: pointer;
  color: #94a3b8;
  border-radius: 6px;
  transition: color .2s ease, background .2s ease;
}
.z2o-eye:hover { color: var(--z-green); background: rgba(13,148,136,.08); }

/* 记住我 + 链接 */
.z2o-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 20px;
}
.z2o-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--z-dim); cursor: pointer; user-select: none;
}
.z2o-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.z2o-box {
  display: flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; flex: none;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  color: transparent;
  transition: all .18s ease;
}
.z2o-check input:checked + .z2o-box {
  background: linear-gradient(135deg, var(--z-blue), var(--z-green));
  border-color: var(--z-green);
  color: #fff;
}
.z2o-check:hover .z2o-box { border-color: var(--z-green); }

.z2o-link {
  font-size: 13px; color: var(--z-green); text-decoration: none;
  transition: color .18s ease, text-shadow .18s ease;
}
.z2o-link:hover {
  color: #0ea5e9; text-decoration: underline;
}

/* 错误提示 */
.z2o-error {
  display: flex; align-items: center; gap: 8px;
  margin: -6px 0 16px; padding: 10px 13px;
  font-size: 13px; color: #dc2626;
  background: rgba(220,38,38,.06);
  border: 1px solid rgba(220,38,38,.18);
  border-radius: 9px;
}
.z2o-error-ic { display: flex; flex: none; }
.z2o-error.shake { animation: z2o-shake .38s cubic-bezier(.36,.07,.19,.97); }
@keyframes z2o-shake {
  10%,90% { transform: translateX(-2px); }
  20%,80% { transform: translateX(3px); }
  30%,50%,70% { transform: translateX(-5px); }
  40%,60% { transform: translateX(5px); }
}

/* ═══════════════════════════════════════════════════════════════
   登录按钮
   ═══════════════════════════════════════════════════════════════ */
.z2o-btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 48px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1; border-radius: 12px;
  color: #0f172a; font-size: 15px; font-weight: 600; letter-spacing: .08em;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.05);
  transition: all .22s cubic-bezier(.4,0,.2,1);
}
.z2o-btn::after {
  content: ''; position: absolute; top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(13,148,136,.18), transparent);
  transform: skewX(-18deg);
  transition: left .6s cubic-bezier(.4,0,.2,1);
}
.z2o-btn:hover:not(:disabled)::after { left: 145%; }
.z2o-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #0d9488;
  color: #0d9488;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13,148,136,.18);
}
.z2o-btn:active:not(:disabled) {
  transform: translateY(0);
  background: #f1f5f9;
}
.z2o-btn:disabled { cursor: not-allowed; opacity: .6; }
.z2o-btn::after {
  content: ''; position: absolute; top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg);
  transition: left .62s cubic-bezier(.4,0,.2,1);
}
.z2o-btn:hover:not(:disabled)::after { left: 145%; }
.z2o-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15,23,42,.30);
  filter: brightness(1.06);
}
.z2o-btn:active:not(:disabled) { transform: translateY(0) scale(.994); }
.z2o-btn:disabled { cursor: not-allowed; opacity: .82; }

.z2o-btn-dots { display: none; align-items: center; gap: 5px; }
.z2o-btn.loading .z2o-btn-text { display: none; }
.z2o-btn.loading .z2o-btn-dots { display: flex; }
.z2o-btn-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: #0d9488;
  animation: z2o-bounce 1.1s ease-in-out infinite;
}
.z2o-btn-dots i:nth-child(2) { animation-delay: .16s; }
.z2o-btn-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes z2o-bounce {
  0%,80%,100% { transform: translateY(0); opacity: .55; }
  40%         { transform: translateY(-7px); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   卡片底部
   ═══════════════════════════════════════════════════════════════ */
.z2o-foot {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,.11);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 10.5px; letter-spacing: .15em;
  color: rgba(100,116,139,.72);
  text-transform: uppercase;
}
.z2o-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(45,208,140,.6);
}

/* ═══════════════════════════════════════════════════════════════
   过渡
   ═══════════════════════════════════════════════════════════════ */
.z2o-fade-enter-active, .z2o-fade-leave-active { transition: opacity .2s ease; }
.z2o-fade-enter-from, .z2o-fade-leave-to { opacity: 0; }

/* ═══════════════════════════════════════════════════════════════
   响应式
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 520px) {
  .z2o-card {
  position: relative;
  width: 100%; max-width: 420px;
  margin: 0 20px; padding: 42px 40px 34px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 22px;
  box-shadow:
    0 1px 3px rgba(15,23,42,.05),
    0 14px 40px rgba(15,23,42,.09),
    0 0 0 1px rgba(255,255,255,.9) inset;
  animation: z2o-card-in .68s cubic-bezier(.22,.75,.28,1) both;
}




/* ═══════════════════════════════════════════════════════════════
   宿主容器（index.html 注入的 #z2o-login-host）
   ═══════════════════════════════════════════════════════════════ */
#z2o-login-host {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  right: 0 !important; bottom: 0 !important;
  z-index: 900 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow: auto !important;
  background: #f6f8fa;
  padding: 24px 0 !important;
  box-sizing: border-box !important;
}

/* 卡片自己不设 margin auto（由 flex 居中） */
#z2o-login-host > .z2o-card {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

/* 品牌定位修正（相对宿主） */
#z2o-login-host .z2o-brand {
  position: fixed !important;
  top: 26px !important; left: 30px !important;
}

/* 隐藏 Vben 空的 app 容器（避免干扰） */
body:has(#z2o-login-host:not([style*="none"])) #app {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


}

/* 兜底：绝对定位居中 */
#z2o-login-host { display: flex !important; }
#z2o-login-host > .z2o-card {
  position: relative !important;
  margin-left: auto !important;
  margin-right: auto !important;
}







/* ═══════════════════════════════════════════════════════════════
   Zeros2One iOS — 从无到有（0→1）主 LOGO 动画
   ═══════════════════════════════════════════════════════════════ */
.z2o-logo-anim { display: block; overflow: visible; }
.z2o-logo-anim .z2o-p1 {
  transform-origin: 60px 60px;
  animation: z2o-burst 3.2s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes z2o-burst {
  0%     { opacity: 0; transform: scale(0); }
  10%    { opacity: 1; transform: scale(2.4); }
  22%    { opacity: .95; transform: scale(1.4); }
  55%    { opacity: .7; transform: scale(1); }
  100%   { opacity: 0; transform: scale(.6); }
}

.z2o-logo-anim .z2o-rays {
  transform-origin: 60px 60px;
  animation: z2o-rays-spin 3.2s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes z2o-rays-spin {
  0%     { opacity: 0; transform: rotate(-30deg) scale(.3); }
  12%    { opacity: .75; transform: rotate(0deg) scale(1); }
  40%    { opacity: .35; transform: rotate(45deg) scale(1.05); }
  70%    { opacity: .15; transform: rotate(90deg) scale(1); }
  100%   { opacity: 0; transform: rotate(120deg) scale(.9); }
}

.z2o-logo-anim .z2o-particles circle {
  transform-origin: 60px 60px;
  animation: z2o-part-in 3.2s cubic-bezier(.4,0,.2,1) infinite;
}
.z2o-logo-anim .z2o-particles circle:nth-child(1) { animation-delay: 0s }
.z2o-logo-anim .z2o-particles circle:nth-child(2) { animation-delay: .1s }
.z2o-logo-anim .z2o-particles circle:nth-child(3) { animation-delay: .2s }
.z2o-logo-anim .z2o-particles circle:nth-child(4) { animation-delay: .3s }
.z2o-logo-anim .z2o-particles circle:nth-child(5) { animation-delay: .4s }
.z2o-logo-anim .z2o-particles circle:nth-child(6) { animation-delay: .5s }
@keyframes z2o-part-in {
  0%     { opacity: 0; transform: scale(2.2); }
  20%    { opacity: 1; transform: scale(1); }
  50%    { opacity: .8; transform: scale(1); }
  75%    { opacity: 0; transform: scale(.2); }
  100%   { opacity: 0; transform: scale(.2); }
}

.z2o-logo-anim .z2o-n0 {
  transform-origin: 60px 60px;
  animation: z2o-num0 3.2s cubic-bezier(.5,0,.3,1) infinite;
}
@keyframes z2o-num0 {
  0%, 28%  { opacity: 0; transform: scale(.4)  rotate(-25deg); }
  40%      { opacity: 1; transform: scale(1.12) rotate(0deg); }
  48%      { opacity: 1; transform: scale(.98) rotate(0deg); }
  68%      { opacity: 1; transform: scale(1)   rotate(0deg); }
  80%      { opacity: 0; transform: scale(.35) rotate(-30deg); }
  100%     { opacity: 0; transform: scale(.35) rotate(-30deg); }
}

.z2o-logo-anim .z2o-n1 {
  transform-origin: 60px 60px;
  animation: z2o-num1 3.2s cubic-bezier(.5,0,.3,1) infinite;
}
@keyframes z2o-num1 {
  0%, 76%  { opacity: 0; transform: scale(.35) rotate(30deg); }
  86%      { opacity: 1; transform: scale(1.18) rotate(0deg); }
  92%      { opacity: 1; transform: scale(.96) rotate(0deg); }
  97%      { opacity: 1; transform: scale(1)   rotate(0deg); }
  100%     { opacity: 1; transform: scale(1)   rotate(0deg); }
}
