/* 毅恒武道 · 少儿教务登录 */
:root {
  --blue: #2b9fff;
  --blue-deep: #1a7fe0;
  --blue-soft: #e8f5ff;
  --blue-sky: #5cbcff;
  --yellow: #ffd24a;
  --yellow-warm: #ffb020;
  --yellow-soft: #fff6e0;
  --ink: #1a3a5c;
  --muted: #6b8aad;
  --white: #ffffff;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 20px 50px rgba(26, 127, 224, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(145deg, #dff0ff 0%, #fff8e8 55%, #ffe9b8 100%);
  overflow-x: hidden;
  min-height: 100vh;
}

/* 背景装饰气泡 */
.bg-bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-bubbles span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  animation: float-up 14s ease-in-out infinite;
}

.bg-bubbles span:nth-child(1) {
  width: 80px; height: 80px; left: 8%; bottom: -40px;
  background: var(--blue-sky);
  animation-delay: 0s;
}
.bg-bubbles span:nth-child(2) {
  width: 120px; height: 120px; left: 28%; bottom: -60px;
  background: var(--yellow-warm);
  animation-delay: 2s; animation-duration: 18s;
}
.bg-bubbles span:nth-child(3) {
  width: 60px; height: 60px; left: 55%; bottom: -30px;
  background: var(--blue);
  animation-delay: 4s; animation-duration: 12s;
}
.bg-bubbles span:nth-child(4) {
  width: 100px; height: 100px; left: 75%; bottom: -50px;
  background: #ffd666;
  animation-delay: 1s; animation-duration: 16s;
}
.bg-bubbles span:nth-child(5) {
  width: 50px; height: 50px; left: 90%; bottom: -20px;
  background: var(--blue-sky);
  animation-delay: 3s; animation-duration: 13s;
}

@keyframes float-up {
  0%   { transform: translateY(0) scale(1); opacity: 0.3; }
  50%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) scale(1.15); opacity: 0; }
}

.login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding: 28px;
}

/* 左侧品牌区 */
.brand-panel {
  flex: 1.15;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  position: relative;
}

.brand-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: orb-pulse 5s ease-in-out infinite;
}

.brand-orb--1 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(43, 159, 255, 0.35), transparent 70%);
  top: 12%; left: 18%;
}

.brand-orb--2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.4), transparent 70%);
  bottom: 18%; right: 16%;
  animation-delay: 1.5s;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

.brand-content {
  position: relative;
  text-align: center;
  animation: brand-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes brand-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow-soft);
  color: #c47a00;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
  box-shadow: 0 6px 0 rgba(255, 176, 32, 0.25);
}

.brand-badge svg {
  width: 18px;
  height: 18px;
}

.brand-name {
  font-family: "ZCOOL KuaiLe", "Nunito", cursive;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: var(--blue-deep);
  text-shadow:
    4px 4px 0 var(--yellow),
    8px 8px 0 rgba(43, 159, 255, 0.2);
  margin-bottom: 18px;
}

.brand-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.brand-illus {
  margin-top: 48px;
  width: min(340px, 70vw);
  height: auto;
  animation: bounce-soft 3.2s ease-in-out infinite;
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* 右侧登录区 */
.form-panel {
  flex: 0.95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 40px 40px;
  box-shadow: var(--shadow);
  border: 4px solid rgba(43, 159, 255, 0.12);
  animation: card-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--blue), var(--yellow-warm), var(--blue-sky));
}

@keyframes card-in {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}

.login-card h2 {
  font-family: "ZCOOL KuaiLe", "Nunito", cursive;
  font-size: 1.85rem;
  color: var(--blue-deep);
  margin-bottom: 8px;
}

.login-card .subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-msg {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.form-msg.is-err {
  background: #ffe8e8;
  color: #d64545;
}

.form-msg.is-ok {
  background: #e8fff2;
  color: #1f9d5b;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.input-wrap {
  position: relative;
}

.input-wrap .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--blue);
  pointer-events: none;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 50px;
  border: 3px solid #d6eaff;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--blue-soft);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.field input::placeholder {
  color: #9bb8d4;
  font-weight: 600;
}

.field input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(43, 159, 255, 0.18);
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  font-size: 0.88rem;
  font-weight: 600;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--muted);
  user-select: none;
}

.remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}

.forgot {
  color: var(--blue-deep);
  text-decoration: none;
  transition: color 0.2s;
}

.forgot:hover {
  color: var(--yellow-warm);
}

.btn-login {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  font-family: "ZCOOL KuaiLe", "Nunito", cursive;
  font-size: 1.35rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  box-shadow: 0 8px 0 var(--blue-deep), 0 12px 24px rgba(26, 127, 224, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  position: relative;
}

.btn-login:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 0 var(--blue-deep), 0 16px 28px rgba(26, 127, 224, 0.4);
}

.btn-login:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 var(--blue-deep), 0 6px 12px rgba(26, 127, 224, 0.3);
}

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.login-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.login-foot span {
  color: var(--yellow-warm);
}

/* 小装饰贴纸 */
.sticker {
  position: absolute;
  animation: wiggle 2.8s ease-in-out infinite;
  pointer-events: none;
}

.sticker--star {
  top: 18px;
  right: 22px;
  animation-delay: 0.4s;
}

.sticker--spark {
  bottom: 22px;
  left: 24px;
  animation-delay: 1.2s;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.1); }
}

/* 响应式 */
@media (max-width: 900px) {
  .login-page {
    flex-direction: column;
    padding: 20px 16px 32px;
  }

  .brand-panel {
    padding: 32px 16px 12px;
    flex: none;
  }

  .brand-name {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .brand-illus {
    margin-top: 24px;
    width: min(220px, 55vw);
  }

  .brand-orb--1,
  .brand-orb--2 {
    display: none;
  }

  .form-panel {
    padding: 16px 4px;
    flex: none;
  }

  .login-card {
    padding: 36px 28px 32px;
  }
}
