<template>
  <view class="normal-login-container">
    <view class="login-content">
      <!-- Logo区域 -->
      <view class="logo-section">
        <view class="logo-circle">
          <image 
            class="bluetooth-logo" 
            src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSIjZmZmZmZmIj48cGF0aCBkPSJNMTcuNzEgNy43MUwxMiAyaC0xdjcuNTlMNi40MSA1IDUgNi40MSAxMC41OSAxMiA1IDE3LjU5IDYuNDEgMTkgMTEgMTQuNDFWMjJoMWw1LjcxLTUuNzEtNC4zLTQuMjkgNC4zLTQuMjl6TTEzIDUuODNsMS44OCAxLjg4TDEzIDkuNTlWNS44M3ptMS44OCAxMC40NkwxMyAxOC4xN3YtMy43NmwxLjg4IDEuODh6Ii8+PC9zdmc+" 
            mode="aspectFit"
          />
        </view>
      </view>
      
      <!-- 标题 -->
      <view class="title-section">
        <text class="main-title">搅拌器控制连接</text>
        <text class="sub-title">快速搜索并连接附近搅拌器蓝牙设备</text>
      </view>
      
      <!-- 登录按钮 -->
      <view class="btn-section">
        <button @click="handleLogin" class="login-btn">
          <uni-icons type="right" size="24" color="#667eea" style="margin-right: 12rpx;"></uni-icons>
          <text class="btn-text">进入</text>
        </button>
      </view>
      
      <!-- 装饰元素 -->
      <view class="decoration-dots">
        <view class="dot dot-1"></view>
        <view class="dot dot-2"></view>
        <view class="dot dot-3"></view>
      </view>
    </view>
  </view>
</template>

<script setup>
// 直接跳转到蓝牙设备页面
function handleLogin() {
  uni.reLaunch({
    url: '/pages/bluetooth/bluetooth'
  });
}
</script>

<style lang="scss" scoped>
page {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #667eea;
}

.normal-login-container {
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  
  .login-content {
    padding: 0 60rpx;
    width: 100%;
    
    .logo-section {
      display: flex;
      justify-content: center;
      margin-bottom: 60rpx;
      
      .logo-circle {
        width: 200rpx;
        height: 200rpx;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10rpx);
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.3), 
                    inset 0 0 40rpx rgba(255, 255, 255, 0.1);
        padding: 25rpx;
        border: 3rpx solid rgba(255, 255, 255, 0.3);
        
        .bluetooth-logo {
          width: 120rpx;
          height: 120rpx;
          filter: drop-shadow(0 8rpx 16rpx rgba(0, 0, 0, 0.2));
        }
      }
    }
    
    .title-section {
      text-align: center;
      margin-bottom: 80rpx;
      
      .main-title {
        display: block;
        font-size: 52rpx;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 20rpx;
        letter-spacing: 2rpx;
        text-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.2);
      }
      
      .sub-title {
        display: block;
        font-size: 26rpx;
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.6;
      }
    }
    
    .btn-section {
      margin-bottom: 40rpx;
      
      .login-btn {
        width: 100%;
        height: 100rpx;
        background: #ffffff;
        border-radius: 50rpx;
        border: none;
        box-shadow: 0 16rpx 40rpx rgba(0, 0, 0, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        
        &::after {
          border: none;
        }
        
        &:active {
          transform: translateY(4rpx);
          box-shadow: 0 12rpx 32rpx rgba(0, 0, 0, 0.2);
        }
        
        .btn-text {
          color: #667eea;
          font-size: 34rpx;
          font-weight: 600;
        }
      }
    }
    
    .decoration-dots {
      display: flex;
      justify-content: center;
      gap: 16rpx;
      
      .dot {
        width: 12rpx;
        height: 12rpx;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
      }
    }
  }
}


</style>
