/**
 * auth.css - 登录/注册页面专用样式
 */

/* 页面背景 */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

/* 背景装饰 */
.auth-page::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: authBgRotate 30s linear infinite;
}

@keyframes authBgRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 认证卡片 */
.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 440px;
  padding: 40px;
  position: relative;
  z-index: 1;
}

/* 卡片标题 */
.auth-card-logo {
  text-align: center;
  margin-bottom: 8px;
}

.auth-card-logo h1 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-card-subtitle {
  text-align: center;
  color: #a0aec0;
  font-size: 14px;
  margin-bottom: 30px;
}

/* 登录方式切换标签 */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: #f7fafc;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #718096;
  transition: all 0.3s ease;
  font-weight: 500;
}

.auth-tab.active {
  background: #fff;
  color: #667eea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 表单区域 */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

/* 角色选择 */
.role-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.role-option {
  flex: 1;
  padding: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.role-option i {
  font-size: 24px;
  margin-bottom: 8px;
  color: #a0aec0;
}

.role-option span {
  display: block;
  font-size: 14px;
  color: #718096;
  font-weight: 500;
}

.role-option:hover {
  border-color: #667eea;
}

.role-option.selected {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.role-option.selected i {
  color: #667eea;
}

.role-option.selected span {
  color: #667eea;
}

/* 头像上传 */
.avatar-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #a0aec0;
  cursor: pointer;
  overflow: hidden;
  border: 3px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

.avatar-preview:hover {
  border-color: #667eea;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-preview .avatar-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 10px;
  text-align: center;
  padding: 2px;
  display: none;
}

.avatar-preview:hover .avatar-hint {
  display: block;
}

/* 底部链接 */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #718096;
}

.auth-footer a {
  color: #667eea;
  font-weight: 500;
}

/* 用户选择列表 */
.user-select-list {
  margin: 16px 0;
}

.user-select-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.user-select-item:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.user-select-item .user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
}

.user-select-item .user-info {
  flex: 1;
}

.user-select-item .user-name {
  font-size: 15px;
  font-weight: 500;
  color: #2d3748;
}

.user-select-item .user-role {
  font-size: 12px;
  color: #a0aec0;
}

/* 微信登录占位 */
.wechat-login-placeholder {
  text-align: center;
  padding: 40px 20px;
}

.wechat-login-placeholder i {
  font-size: 60px;
  color: #07c160;
  margin-bottom: 16px;
}

.wechat-login-placeholder p {
  color: #718096;
  font-size: 14px;
  margin-bottom: 20px;
}
