/* ══ 登录页 ══════════════════════════════════════════ */

.login-wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px;
  position: relative;
}

.login-top {
  display: flex; align-items: center; justify-content: space-between;
  animation: fade-down .8s var(--ease) both;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.01em; }
.brand svg { filter: drop-shadow(0 2px 6px rgba(13,148,136,.25)); }
.brand span { font-size: 15.5px; }

.login-main { display: grid; place-items: center; padding: 32px 0; }

/* ── 卡片：旋转光边 + 全息扫光 ───────────────── */
.login-card {
  position: relative;
  width: min(408px, 100%);
  padding: 40px 36px 34px;
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  box-shadow: var(--shadow-lg);
  animation: card-in 1s var(--ease) both .12s;
  overflow: hidden;
  isolation: isolate;
}

/* 旋转的渐变描边 */
.login-card::before {
  content: ''; position: absolute; inset: -1px; z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from var(--a, 0deg),
    transparent 0deg, rgba(94,234,212,.9) 40deg, rgba(129,140,248,.85) 90deg,
    rgba(192,132,252,.6) 140deg, transparent 210deg, transparent 360deg);
  animation: spin-border 6s linear infinite;
  opacity: .75;
}
.login-card::after {
  content: ''; position: absolute; inset: 1px; z-index: -1;
  border-radius: calc(var(--r-xl) - 1px);
  background: #ffffff;
}
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --a: 360deg; } }

/* 全息扫光 */
.login-card > .sheen {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 38%, rgba(79,70,229,.05) 46%,
              rgba(79,70,229,.09) 50%, rgba(79,70,229,.05) 54%, transparent 62%);
  transform: translateX(-120%);
  animation: sheen 5.5s var(--ease-io) infinite 1.4s;
}
@keyframes sheen { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(120%); } }

.login-mark { display: grid; place-items: center; margin-bottom: 20px; }
.login-mark svg { filter: drop-shadow(0 4px 12px rgba(13,148,136,.28)); }

.login-title {
  font-size: 25px; font-weight: 750; letter-spacing: -.025em;
  text-align: center; margin-bottom: 6px;
}
.login-sub {
  text-align: center; color: var(--muted); font-size: 13px;
  margin-bottom: 28px; min-height: 20px;
}
.login-sub .caret {
  display: inline-block; width: 7px; height: 14px; margin-left: 2px;
  background: var(--teal); vertical-align: -2px;
  animation: blink 1.05s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.login-form { display: grid; gap: 16px; }

.login-form .input { padding: 13px 15px; }

.login-error {
  display: none;
  padding: 10px 13px; border-radius: 10px; font-size: 13px;
  background: rgba(225,29,72,.07); border: 1px solid rgba(225,29,72,.30);
  color: #be123c;
}
.login-error.show { display: block; animation: shake .42s var(--ease-io); }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.login-submit { width: 100%; padding: 13px; font-size: 14.5px; margin-top: 4px; }

.login-foot {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.login-foot .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--emerald);
  animation: pulse-dot 2.2s var(--ease-io) infinite;
}
@keyframes pulse-dot { 50% { opacity: .35; transform: scale(.82); } }

.login-bottom {
  text-align: center; font-size: 12px; color: var(--muted);
  animation: fade-up .9s var(--ease) both .3s;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(26px) scale(.965); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes fade-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes fade-up   { from { opacity: 0; transform: translateY(14px); }  to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .login-wrap { padding: 16px; }
  .login-card { padding: 32px 22px 26px; }
  .login-title { font-size: 22px; }
}
