/* ========================================
   登录/注册/找回密码 — 样式
   ======================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #050810, #0a1128);
  padding: 2rem;
}

/* 弹窗容器 */
.auth-box {
  display: flex;
  width: 90rem;
  max-width: 95%;
  min-height: 55rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* 左侧装饰面板 */
.auth-left {
  flex: 0 0 35%;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f97316 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.auth-left .auth-brand {
  position: relative;
  z-index: 1;
  text-align: center;
}
.auth-left .auth-logo {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.auth-left .auth-desc {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
}
.auth-left .auth-features {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}
.auth-left .feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
}
.auth-left .feature-icon {
  width: 2.4rem;
  height: 2.4rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* 右侧表单面板 */
.auth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem;
  overflow-y: auto;
}
.auth-right h4 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-right .auth-subtitle {
  font-size: 1.4rem;
  color: var(--text-weak);
  margin-bottom: 3rem;
}

/* 表单样式 */
.auth-form {
  max-width: 40rem;
}
.auth-form .form-group {
  margin-bottom: 2rem;
  position: relative;
}
.auth-form .form-input {
  width: 100%;
  height: 5rem;
  padding: 1rem 0;
  font-size: 1.6rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(168, 85, 247, 0.4);
  transition: all 0.3s ease;
}
.auth-form .form-input:focus {
  border-bottom-color: #a855f7;
  box-shadow: 0 2px 0 0 #a855f7;
}
.auth-form .form-input::placeholder {
  color: #64748b;
}
.auth-form .form-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--text-weak);
}

/* 密码可见切换 */
.password-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-weak);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.5rem;
}
.password-toggle:hover { color: var(--primary); }

/* 验证码行 */
.code-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.code-row .form-input {
  flex: 1;
}
.code-row .btn-send-code {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.code-row .btn-send-code:hover {
  filter: brightness(1.1);
}
.code-row .btn-send-code:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 记住我 / 忘记密码 */
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0;
}
.auth-options label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.auth-options input[type="checkbox"] {
  width: 1.6rem;
  height: 1.6rem;
  accent-color: #a855f7;
}
.auth-options a {
  font-size: 1.3rem;
  color: var(--primary);
}
.auth-options a:hover { text-decoration: underline; }

/* 提交按钮 */
.auth-submit {
  width: 100%;
  height: 5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border: none;
  border-radius: 0.8rem;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  margin-top: 1rem;
}
.auth-submit:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
  filter: brightness(1.1);
}
.auth-submit:active { transform: translateY(0) scale(0.98); }
.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* 底部链接 */
.auth-footer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 1.4rem;
  color: var(--text-weak);
}
.auth-footer a {
  color: var(--primary);
  font-weight: 500;
}
.auth-footer a:hover { text-decoration: underline; }

/* 分割线 */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  gap: 1rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}
.auth-divider span {
  font-size: 1.2rem;
  color: var(--text-weak);
}

/* 第三方登录 */
.third-party-login {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
}
.third-party-btn {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.third-party-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(168, 85, 247, 0.1);
}

/* 返回首页 */
.back-home {
  text-align: center;
  margin-top: 2rem;
}
.back-home a {
  font-size: 1.3rem;
  color: var(--text-weak);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.back-home a:hover { color: var(--primary); }

/* 密码强度条 */
.password-strength {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.password-strength .bar {
  flex: 1;
  height: 0.4rem;
  background: rgba(168, 85, 247, 0.15);
  border-radius: 0.2rem;
  transition: background 0.3s ease;
}
.password-strength .bar.active.weak { background: #ef4444; }
.password-strength .bar.active.medium { background: #f59e0b; }
.password-strength .bar.active.strong { background: #10b981; }
.strength-text {
  font-size: 1.1rem;
  margin-top: 0.4rem;
  color: var(--text-weak);
}

/* 表单错误提示 */
.form-error {
  font-size: 1.2rem;
  color: #ef4444;
  margin-top: 0.5rem;
  display: none;
}
.form-error.show { display: block; }

/* --- 响应式 --- */
@media (max-width: 768px) {
  .auth-box {
    flex-direction: column;
    min-height: auto;
  }
  .auth-left {
    flex: none;
    padding: 3rem 2rem;
  }
  .auth-left .auth-logo { font-size: 2.5rem; }
  .auth-left .auth-features { display: none; }
  .auth-right {
    padding: 3rem 2rem;
  }
  .auth-right h4 { font-size: 2.2rem; }
  .auth-form .form-input { height: 4.5rem; width: 90%; }
  .auth-submit { width: 90%; }
}
