/* ============ 前台登录页（视觉基准：login.html） ============ */
.login-stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.login-decor .bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(1px);
}

.login-decor .bg-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  background: #ffb6c1;
  top: -110px;
  left: -90px;
  animation: floatCircle 20s ease-in-out infinite;
}

.login-decor .bg-circle:nth-child(2) {
  width: 260px;
  height: 260px;
  background: #87ceeb;
  bottom: -90px;
  right: -70px;
  animation: floatCircle 25s ease-in-out infinite reverse;
}

.login-decor .bg-circle:nth-child(3) {
  width: 180px;
  height: 180px;
  background: #ffffff;
  top: 52%;
  left: 50%;
  animation: floatCircle 15s ease-in-out infinite;
}

@keyframes floatCircle {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.08);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.94);
  }
}

.login-decor .cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 60px;
  animation: cloudFloat 40s linear infinite;
}

.login-decor .cloud::before,
.login-decor .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-a {
  width: 100px;
  height: 38px;
  top: 16%;
  left: -160px;
  animation-duration: 38s;
}
.cloud-a::before {
  width: 50px;
  height: 50px;
  top: -24px;
  left: 14px;
}
.cloud-a::after {
  width: 38px;
  height: 38px;
  top: -14px;
  left: 50px;
}

.cloud-b {
  width: 80px;
  height: 30px;
  top: 40%;
  left: -140px;
  animation-duration: 46s;
  animation-delay: 8s;
}
.cloud-b::before {
  width: 40px;
  height: 40px;
  top: -20px;
  left: 10px;
}
.cloud-b::after {
  width: 30px;
  height: 30px;
  top: -10px;
  left: 40px;
}

@keyframes cloudFloat {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(100vw + 200px));
  }
}

.floating-icon {
  position: absolute;
  font-size: 26px;
  opacity: 0.14;
  animation: floatIcon 18s ease-in-out infinite;
  user-select: none;
}

.floating-icon:nth-child(1) {
  top: 12%;
  left: 8%;
  animation-delay: 0s;
}
.floating-icon:nth-child(2) {
  top: 24%;
  right: 10%;
  animation-delay: 3s;
}
.floating-icon:nth-child(3) {
  top: 62%;
  left: 7%;
  animation-delay: 6s;
}
.floating-icon:nth-child(4) {
  bottom: 16%;
  right: 12%;
  animation-delay: 9s;
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(6deg);
  }
}

/* ---------- 登录卡片 ---------- */
.login-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.94);
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--r-xl);
  padding: 34px 28px 26px;
  box-shadow: 0 20px 60px rgba(255, 182, 193, 0.25), 0 20px 60px rgba(135, 206, 235, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -2px 0 rgba(174, 190, 205, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: cardEntrance 0.65s ease-out;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 15px 35px rgba(255, 182, 193, 0.4), 0 15px 35px rgba(135, 206, 235, 0.35),
    inset 0 3px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  animation: logoFloat 3s ease-in-out infinite;
}

.login-logo::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  z-index: -1;
  background: linear-gradient(45deg, #ffb6c1, #87ceeb, #ffb6c1, #87ceeb);
  background-size: 400% 400%;
  opacity: 0.65;
  animation: logoGlow 3.6s linear infinite;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(3deg);
  }
}

@keyframes logoGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.login-brand {
  text-align: center;
  margin-bottom: 26px;
}

.login-brand h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--pink-soft) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.login-brand h1::after {
  content: '✦';
  position: absolute;
  top: -12px;
  right: -22px;
  font-size: 15px;
  color: var(--pink);
  -webkit-text-fill-color: var(--pink);
  animation: sparkle 2.4s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(160deg);
  }
}

.login-brand p {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.login-form .q-field {
  position: relative;
  margin-bottom: 18px;
}

.login-form .q-input {
  padding-left: 46px;
  height: 50px;
}

.login-form .field-icon {
  position: absolute;
  left: 16px;
  bottom: 15px;
  width: 18px;
  height: 18px;
  color: var(--pink);
  opacity: 0.85;
  pointer-events: none;
  transition: var(--fast);
}

.login-form .q-input:focus + .field-icon {
  color: var(--indigo);
  transform: scale(1.1);
}

.login-submit {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  font-size: 16px;
  letter-spacing: 0.14em;
}

.demo-hint {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.7;
}

.demo-hint code {
  font-family: var(--font-mono);
  color: var(--pink);
  background: rgba(255, 182, 193, 0.16);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
}

.login-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed rgba(148, 163, 184, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--faint);
  font-weight: 600;
}

.login-footer a {
  color: var(--indigo);
  text-decoration: none;
  font-weight: 700;
}

.login-footer a:hover {
  color: var(--pink);
}

@media (max-width: 480px) {
  .login-stage {
    padding: 16px;
    align-items: center;
  }
  .login-card {
    padding: 28px 20px 22px;
    border-radius: var(--r-lg);
  }
  .login-logo {
    width: 64px;
    height: 64px;
  }
  .login-brand h1 {
    font-size: 22px;
  }
  .login-brand {
    margin-bottom: 22px;
  }
  .login-form .q-input {
    height: 48px;
  }
}

@media (min-width: 768px) {
  .login-card {
    max-width: 380px;
    padding: 38px 34px 30px;
  }
}

@media (min-width: 1200px) {
  .login-card {
    max-width: 400px;
  }
}
