* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #fff;
  overflow: hidden;
}

.login-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 背景 */
.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(96, 84, 255, .32), transparent 60%),
    radial-gradient(1000px 700px at 85% 90%, rgba(56, 130, 246, .30), transparent 60%),
    linear-gradient(135deg, #0a0f2e 0%, #101743 45%, #0b1030 100%);
  animation: breath 14s ease-in-out infinite;
}
.login-bg::before, .login-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
}
.login-bg::before {
  width: 420px; height: 420px;
  left: -80px; top: -100px;
  background: rgba(124, 96, 255, .35);
  animation: float1 18s ease-in-out infinite;
}
.login-bg::after {
  width: 380px; height: 380px;
  right: -60px; bottom: -120px;
  background: rgba(56, 130, 246, .35);
  animation: float2 22s ease-in-out infinite;
}

/* 头部 */
.login-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #7c8cff, #4f7cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c8cff, #4f7cff);
  box-shadow: 0 0 12px rgba(124, 140, 255, .8);
}
.brand-tags {
  display: flex;
  gap: 10px;
}
.brand-tags span {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .75);
  background: rgba(255, 255, 255, .04);
}
.brand-tags a{
	color: rgba(255, 255, 255, .6);
    text-decoration: none;
}

/* 主体 */
.login-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 0 48px;
}

/* 左侧宣传 */
.promo {
  flex: 1;
  max-width: 560px;
  animation: slideUp .8s ease both;
}
.promo h1 {
  font-size: 42px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 16px;
}
.promo h1 .grad {
  background: linear-gradient(90deg, #8ea2ff, #5b8cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.promo p {
  color: rgba(255, 255, 255, .6);
  font-size: 16px;
  line-height: 1.8;
  max-width: 440px;
}
.promo-globe-wrap {
  margin-top: 8px;
  position: relative;
}
.promo-globe-wrap canvas {
  width: 340px;
  height: 340px;
  display: block;
}
.promo a { color: rgba(255, 255, 255, .6);    text-decoration: none; }

/* 登录卡片 */
.login-card {
  width: 420px;
  padding: 44px 40px 36px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: cardIn .7s .15s ease both;
}
.login-card h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.login-card .sub { font-size: 13px; color: rgba(255, 255, 255, .5); margin-bottom: 28px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: rgba(255, 255, 255, .65); margin-bottom: 8px; }
.field input {
  width: 100%; height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  outline: none;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: rgba(255, 255, 255, .35); }
.field input:focus {
  border-color: #5b8cff;
  background: rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 3px rgba(91, 140, 255, .18);
}

.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-btn {
  width: 116px; height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.code-btn:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); }

.remaind { font-size: 12px; color: rgba(255, 255, 255, .4); line-height: 1.6; margin: -4px 0 20px; }

.btn-submit {
  width: 100%; height: 48px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, #5b8cff, #7c6cff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 6px;
  text-indent: 6px;
  box-shadow: 0 10px 24px rgba(91, 140, 255, .35);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn-submit:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 30px rgba(91, 140, 255, .45); }
.btn-submit:active { transform: translateY(0); }

/* 底部 */
.login-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 18px 0 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
}
.login-footer a { color: rgba(255, 255, 255, .4); text-decoration: none; }
.login-footer a:hover { color: rgba(255, 255, 255, .7); }

/* 动画 */
@keyframes breath {
  0%, 100% { opacity: .85; }
  50% { opacity: 1; }
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -40px); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* 响应式 */
@media (max-width: 1024px) {
  .promo { display: none; }
  .login-body { padding: 0 24px; }
  .login-card { width: 400px; max-width: 100%; }
}