<template>
  <div class="register-container">
    <div class="register-box">
      <div class="register-header">
        <div class="logo">
          <img src="@/assets/logo.png" alt="Logo" />
        </div>
        <h1 class="title">注册账户</h1>
        <p class="subtitle">创建您的校园新闻管理系统账户</p>
      </div>
      
      <div class="register-form">
        <!-- 注册表单内容 -->
        <div class="form-placeholder">
          <p>注册功能开发中...</p>
        </div>
      </div>
      
      <div class="register-footer">
        <p>
          已有账户？
          <el-link type="primary" @click="goToLogin">立即登录</el-link>
        </p>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';

const router = useRouter();

function goToLogin() {
  router.push('/login');
}
</script>

<style lang="scss" scoped>
.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.register-box {
  width: 100%;
  max-width: 400px;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.register-header {
  text-align: center;
  margin-bottom: 32px;
  
  .logo img {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
  }
  
  .title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
  }
  
  .subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
  }
}

.register-form {
  .form-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
  }
}

.register-footer {
  text-align: center;
  margin-top: 24px;
  
  p {
    color: #666;
    font-size: 14px;
    margin: 0;
  }
}
</style>
