* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }

.login-body {
  min-height: 100vh;
  width: 100%;
  display: flex;
  background-color: #f0f4f8;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(59,130,246,0.15); }
  50% { box-shadow: 0 0 15px rgba(59,130,246,0.3); }
}

.bg-decor {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

.bg-circle.c1 {
  top: 5%; left: 3%;
  width: 288px; height: 288px;
  background: rgba(96,165,250,0.07);
}

.bg-circle.c2 {
  top: 25%; right: 5%;
  width: 224px; height: 224px;
  background: rgba(56,189,248,0.06);
  animation-delay: 1s;
}

.bg-circle.c3 {
  bottom: 10%; left: 10%;
  width: 160px; height: 160px;
  background: rgba(147,197,253,0.08);
  animation-delay: 2s;
}

.bg-grid {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(#3b82f6 1px, transparent 1px),
    linear-gradient(90deg, #3b82f6 1px, transparent 1px);
  background-size: 50px 50px;
}

.brand-side {
  display: none;
}

@media (min-width: 1024px) {
  .brand-side {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
  }
}

.brand-card {
  max-width: 576px;
  padding: 48px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(226,232,240,0.8);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  text-align: center;
  animation: fadeInUp 0.45s ease-out forwards;
}

.brand-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(59,130,246,0.25);
  animation: glow 3s ease-in-out infinite;
}

.brand-icon svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.brand-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.brand-sub {
  font-size: 14px;
  font-weight: 500;
  color: #3b82f6;
  margin-bottom: 12px;
}

.brand-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

.brand-features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(248,250,252,0.8);
  border-radius: 12px;
}

.feat-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-icon svg {
  width: 14px;
  height: 14px;
  color: #3b82f6;
}

.feat-text {
  font-size: 13px;
  color: #475569;
}

.form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 24px;
}

.form-wrap {
  width: 100%;
  max-width: 400px;
  background: none;
  animation: fadeInUp 0.45s ease-out forwards;
}

.mobile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .mobile-logo {
    display: none;
  }
}

.mobile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(59,130,246,0.25);
}

.mobile-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.mobile-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.mobile-ver {
  font-size: 11px;
  color: #3b82f6;
}

.login-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
  padding: 32px;
  border: 1px solid rgba(226,232,240,0.6);
}

.login-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.header-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon svg {
  width: 20px;
  height: 20px;
  color: #3b82f6;
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.header-desc {
  font-size: 12px;
  color: #94a3b8;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94a3b8;
  transition: color 0.2s;
}

.input-group:focus-within .input-icon {
  color: #3b82f6;
}

.form-input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  color: #334155;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: #60a5fa;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

.input-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.input-toggle svg {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  transition: color 0.2s;
}

.input-toggle:hover svg {
  color: #3b82f6;
}

.login-btn {
  width: 100%;
  height: 40px;
  background: #3b82f6;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.login-btn:hover {
  background: #2563eb;
  box-shadow: 0 10px 30px rgba(59,130,246,0.3);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: scale(0.98);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: #f1f5f9;
}

.divider-text {
  font-size: 10px;
  color: #94a3b8;
}

.extra-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.extra-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.extra-btn:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.extra-btn svg {
  width: 14px;
  height: 14px;
}

.footer {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
}

.footer-divider {
  margin: 0 8px;
  color: #e2e8f0;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #3b82f6;
}

.scrollbar-thin::-webkit-scrollbar { width: 5px; height: 5px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.scrollbar-thin::-webkit-scrollbar-thumb:hover { background: #94a3b8; }