/* ============================================
   SupShare - 登录注册页样式
   ============================================ */

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 主体区：品牌面板 + 表单面板，占满剩余高度，页脚始终位于页面底部 */
.login-body {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* Left Brand Panel */
.login-brand {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #070E1A 0%, #0C1629 20%, #111D3A 40%, #162B52 65%, #1A3570 85%, #1D4ED8 100%);
  min-width: 0;
}

/* Glow orbs with animation */
.login-brand .glow-1 {
  position: absolute; top: -10%; right: -15%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, rgba(59,130,246,0.06) 40%, transparent 70%);
  animation: glowFloat1 20s ease-in-out infinite;
}
.login-brand .glow-2 {
  position: absolute; bottom: -20%; left: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, rgba(99,102,241,0.04) 35%, transparent 65%);
  animation: glowFloat2 25s ease-in-out infinite;
}
.login-brand .glow-3 {
  position: absolute; top: 50%; left: 40%;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.1) 0%, transparent 60%);
  animation: glowFloat3 15s ease-in-out infinite;
}

/* Hexagon decorations with animation */
.login-brand .hex { position: absolute; opacity: 0.06; background: #93C5FD; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.login-brand .hex-1 { top: 8%; right: 12%; width: 64px; height: 64px; animation: hexRotate1 30s linear infinite; }
.login-brand .hex-2 { top: 18%; left: 8%; width: 40px; height: 40px; opacity: 0.08; background: #A5B4FC; animation: hexRotate2 22s linear infinite reverse; }
.login-brand .hex-3 { bottom: 15%; right: 6%; width: 48px; height: 48px; animation: hexRotate3 28s linear infinite; }
.login-brand .hex-4 { bottom: 35%; left: 5%; width: 32px; height: 32px; opacity: 0.07; background: #C7D2FE; animation: hexRotate4 18s linear infinite reverse; }

/* Network lines SVG */
.login-brand .network-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.04;
}

/* Grid mesh */
.login-brand .grid-mesh {
  position: absolute; inset: 0; opacity: 0.025;
  background-image: linear-gradient(rgba(147,197,253,0.4) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(147,197,253,0.4) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Particles with animation */
.login-brand .particle {
  position: absolute; border-radius: 50%; background: #93C5FD;
  animation: particleFloat 8s ease-in-out infinite;
}
.login-brand .particle:nth-child(7) { animation-delay: 0s; }
.login-brand .particle:nth-child(8) { animation-delay: 1.5s; }
.login-brand .particle:nth-child(9) { animation-delay: 3s; }
.login-brand .particle:nth-child(10) { animation-delay: 4.5s; }
.login-brand .particle:nth-child(11) { animation-delay: 2s; }
.login-brand .particle:nth-child(12) { animation-delay: 5.5s; }
.login-brand .particle:nth-child(13) { animation-delay: 0.5s; }

/* Brand content */
.brand-content {
  position: relative; z-index: 2; text-align: center; padding: 40px;
  animation: brandFadeIn 1s ease-out forwards;
  opacity: 0;
}
.brand-logo {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 40px;
}
.brand-logo-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(99,102,241,0.15));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(147,197,253,0.2);
  box-shadow: 0 0 40px rgba(59,130,246,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  animation: logoPulse 3s ease-in-out infinite;
}
.brand-logo-text {
  font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; color: #FFF;
  text-shadow: 0 0 30px rgba(59,130,246,0.3);
}
.brand-tagline { font-size: 2rem; font-weight: 700; color: #FFF; text-shadow: 0 2px 20px rgba(0,0,0,0.2); margin-bottom: 20px; line-height: 1.3; }
.brand-desc { font-size: 1.125rem; color: rgba(255,255,255,0.75); line-height: 1.6; }

.feature-list { margin-top: 56px; text-align: left; display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 16px; animation: featureSlideIn 0.6s ease-out forwards; opacity: 0; }
.feature-item:nth-child(1) { animation-delay: 0.3s; }
.feature-item:nth-child(2) { animation-delay: 0.5s; }
.feature-item:nth-child(3) { animation-delay: 0.7s; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(99,102,241,0.1));
  border: 1px solid rgba(147,197,253,0.15);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { color: #93C5FD; }
.feature-title { font-size: 0.875rem; font-weight: 600; color: #FFF; }
.feature-desc { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* Right Form Panel - Tech style (lighter) */
.login-form-panel {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px;
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.10) 0%, transparent 40%),
    linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 50%, #F8FAFC 100%);
  position: relative;
  overflow: hidden;
}

/* Animated grid background on form panel */
.login-form-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

/* Scan line effect */
.login-form-panel::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.10) 50%, transparent 100%);
  animation: scanLine 6s ease-in-out infinite;
  pointer-events: none;
}

.login-form-card {
  width: 100%; max-width: 420px;
  position: relative;
  z-index: 1;
  padding: 36px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(147, 197, 253, 0.3);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.05),
    0 20px 60px rgba(30, 64, 175, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

/* Glowing corner accents */
.login-form-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5) 0%, transparent 30%, transparent 70%, rgba(99, 102, 241, 0.5) 100%);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.7;
}

.login-form-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.5) 50%, transparent 100%);
}

.login-mobile-logo {
  display: none; align-items: center; gap: 10px; margin-bottom: 32px; justify-content: center;
}
.login-mobile-logo .logo-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #3B82F6, #6366F1); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
.login-mobile-logo span { font-size: 1.35rem; font-weight: 700; color: #1E293B; letter-spacing: -0.02em; }

/* Tabs - Tech glowing */
.login-tabs {
  display: flex; border-bottom: 1px solid rgba(59, 130, 246, 0.15); margin-bottom: 28px;
}
.login-tab {
  flex: 1; padding: 12px 0; text-align: center; font-size: 1rem; font-weight: 600;
  color: #64748B; cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all var(--transition-fast);
  letter-spacing: 0.02em;
}
.login-tab:hover { color: #475569; }
.login-tab.active {
  color: #2563EB;
  border-bottom-color: #2563EB;
  text-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

/* Form fields - Tech light inputs */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: #334155; margin-bottom: 6px; }
.form-group .form-input {
  height: 46px; border-radius: 12px; font-size: 0.9375rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #1E293B;
  transition: all var(--transition-fast);
}
.form-group .form-input::placeholder { color: #94A3B8; }
.form-group .form-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 20px rgba(59, 130, 246, 0.08);
}

.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.form-checkbox { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: #475569; cursor: pointer; }
.form-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: #3B82F6; }
.form-link { font-size: 0.875rem; color: #2563EB; cursor: pointer; }
.form-link:hover { color: #1D4ED8; text-decoration: underline; }

.login-submit {
  width: 100%; height: 48px; border-radius: 12px; font-size: 1rem; font-weight: 600;
  background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
  color: #FFF; border: none; cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}
.login-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}
.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.45);
}
.login-submit:hover::before { left: 100%; }
.login-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.login-footer {
  margin-top: 32px; text-align: center; font-size: 0.8125rem; color: #64748B;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.login-footer a { color: #64748B; cursor: pointer; }
.login-footer a:hover { color: #2563EB; }

/* ===== 站点页脚：ICP 备案信息 ===== */
.site-footer {
  flex-shrink: 0;
  padding: 12px 20px max(12px, env(safe-area-inset-bottom));
  background: #F8FAFC;
  border-top: 1px solid rgba(59, 130, 246, 0.10);
  text-align: center;
  position: relative;
  z-index: 2;
}
.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.75rem;
  line-height: 1.8;
  color: #64748B;
}
.site-footer .footer-sep { color: #CBD5E1; }
.site-footer .footer-icp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #64748B;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.site-footer .footer-icp svg { flex-shrink: 0; }
.site-footer .footer-icp:hover { color: #2563EB; text-decoration: underline; }

@media (max-width: 480px) {
  .site-footer-inner { font-size: 0.6875rem; gap: 2px 8px; }
  .site-footer .footer-sep { display: none; }
  .site-footer .footer-copy { flex: 0 0 100%; }
}

/* Form validation */
.form-input.error { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); }
.form-error { font-size: 0.75rem; color: #F87171; margin-top: 4px; display: none; }
.form-error.visible { display: block; }

/* Responsive */
@media (max-width: 1023px) {
  .login-brand { display: none; }
  .login-form-panel { padding: 24px; }
  .login-form-card { padding: 28px; }
  .login-mobile-logo { display: flex; }
}

@media (max-width: 480px) {
  .login-form-panel { padding: 16px; }
  .login-form-card { max-width: 100%; padding: 24px 20px; border-radius: 16px; }
}

/* Tech form panel animations */
@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(50px); }
}

@keyframes scanLine {
  0% { top: -100%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes glowFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  25% { transform: translate(-20px, -30px) scale(1.05); opacity: 1; }
  50% { transform: translate(10px, 20px) scale(0.95); opacity: 0.7; }
  75% { transform: translate(-10px, 10px) scale(1.02); opacity: 0.9; }
}

@keyframes glowFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  33% { transform: translate(30px, 15px) scale(1.08); opacity: 0.9; }
  66% { transform: translate(-25px, -20px) scale(0.92); opacity: 0.6; }
}

@keyframes glowFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(20px, -25px) scale(1.1); opacity: 0.8; }
}

@keyframes hexRotate1 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hexRotate2 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hexRotate3 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hexRotate4 {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.4;
    box-shadow: 0 0 6px 1px rgba(147,197,253,0.5);
  }
  25% {
    transform: translateY(-15px) translateX(8px);
    opacity: 0.8;
    box-shadow: 0 0 12px 2px rgba(147,197,253,0.7);
  }
  50% {
    transform: translateY(-25px) translateX(-5px);
    opacity: 0.5;
    box-shadow: 0 0 8px 1px rgba(147,197,253,0.6);
  }
  75% {
    transform: translateY(-10px) translateX(10px);
    opacity: 0.7;
    box-shadow: 0 0 10px 2px rgba(147,197,253,0.65);
  }
}

@keyframes brandFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes featureSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 0 40px rgba(59,130,246,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  }
  50% {
    box-shadow: 0 0 60px rgba(59,130,246,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  }
}