/**
 * 聚支付管理系统 - 注册页面样式
 * 
 * @fileoverview 用户注册页面样式文件
 * @author      流沙聚开发团队
 * @company     流沙聚工作室
 * @version     1.0.0
 * @since       2025-01-05
 * @copyright   Copyright (c) 2025 流沙聚工作室. All rights reserved.
 * @license     商业软件，保留所有权利
 * @contact     https://www.icks018.cn
 */

/* ==================== 全局样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-secondary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

/* ==================== 注册容器 ==================== */
.register-container {
  width: 100%;
  max-width: 1200px;
  min-height: 700px;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  margin: 20px;
}

/* ==================== 左侧装饰区域 ==================== */
.register-left {
  background: var(--primary-color);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  overflow: hidden;
}

.register-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bg-shape {
  position: absolute;
  background: var(--white);
  opacity: 0.05;
  border-radius: var(--border-radius-lg);
  animation: shapeFloat 20s ease-in-out infinite;
}

.bg-shape.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.bg-shape.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 50px;
  left: -50px;
  animation-delay: 5s;
}

.bg-shape.shape-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 10s;
}

@keyframes shapeFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.register-info {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
}

.info-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  animation: logoFade 2s ease-in-out infinite;
}

.info-logo-img {
  height: 60px;
  width: 60px;
  object-fit: contain;
  border-radius: 12px;
}

.info-logo-text {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2px;
}

@keyframes logoFade {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.info-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.info-desc {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 50px;
  line-height: 1.6;
}

/* 注册步骤 */
.info-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.step-text {
  font-size: 14px;
  opacity: 0.9;
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--white);
  opacity: 0.3;
  margin-top: -25px;
}

/* ==================== 右侧注册表单 ==================== */
.register-right {
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.register-form-wrapper {
  width: 100%;
  max-width: 400px;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -1px;
}

.form-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.reg-pay-notice {
  margin-top: 15px;
  padding: 12px 20px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.reg-pay-notice i {
  color: var(--primary-color);
  font-size: 16px;
}

.reg-pay-notice strong {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 700;
}

/* ==================== 表单样式 ==================== */
.register-form {
  width: 100%;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-label i {
  color: var(--primary-color);
  font-size: 16px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: var(--white);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* 密码输入框 */
.password-wrapper {
  position: relative;
}

.password-wrapper .form-input {
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  transition: all 0.3s ease;
}

.password-toggle:hover {
  color: var(--primary-color);
}

/* 密码强度 */
.password-strength {
  margin-top: 8px;
  display: none;
}

.password-strength.active {
  display: block;
}

.strength-bar {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  margin-bottom: 6px;
}

.strength-fill {
  height: 100%;
  width: 0;
  background: var(--danger-color);
  transition: all 0.3s ease;
}

.strength-fill.weak {
  width: 33%;
  background: var(--danger-color);
}

.strength-fill.medium {
  width: 66%;
  background: var(--warning-color);
}

.strength-fill.strong {
  width: 100%;
  background: var(--success-color);
}

.strength-text {
  font-size: 12px;
  color: var(--text-secondary);
}

.strength-level {
  font-weight: 600;
}

.strength-level.weak {
  color: var(--danger-color);
}

.strength-level.medium {
  color: var(--warning-color);
}

.strength-level.strong {
  color: var(--success-color);
}

/* 服务条款 */
.form-agreement {
  margin-bottom: 30px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-top: 2px;
  accent-color: var(--primary-color);
  flex-shrink: 0;
}

.checkbox-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.agreement-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.agreement-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* 注册按钮 */
.btn-register {
  width: 100%;
  padding: 16px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-register::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-hover);
  transition: left 0.5s ease;
}

.btn-register:hover::before {
  left: 0;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-text,
.btn-icon {
  position: relative;
  z-index: 1;
}

.btn-register:hover .btn-icon {
  transform: translateX(5px);
}

/* 表单底部 */
.form-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.footer-text {
  font-size: 14px;
  color: var(--text-secondary);
  margin-right: 8px;
}

.login-link {
  font-size: 14px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* 返回首页 */
.back-home {
  text-align: center;
  margin-top: 30px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.home-link:hover {
  color: var(--primary-color);
}

.home-link i {
  font-size: 16px;
}

/* ==================== 注册关闭提示 ==================== */
.register-closed {
  text-align: center;
  padding: 60px 20px;
}

.closed-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closed-icon i {
  font-size: 48px;
  color: var(--text-muted);
}

.closed-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.closed-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.closed-hint {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.closed-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-back-login,
.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-back-login {
  background: var(--primary-color);
  color: var(--white);
}

.btn-back-login:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-back-home {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-back-home:hover {
  background: var(--bg-tertiary);
  transform: translateY(-2px);
}

/* ==================== 加载提示 ==================== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay.active {
  display: flex;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
  .register-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .register-left {
    display: none;
  }

  .register-right {
    padding: 40px 30px;
  }
}

@media (max-width: 576px) {
  .register-right {
    padding: 30px 20px;
  }

  .form-title {
    font-size: 28px;
  }

  .form-subtitle {
    font-size: 14px;
  }
}

