/* ============================================
   CSS 变量定义
   ============================================ */
:root {
  /* 颜色变量 */
  --color-primary: #0154A4;
  --color-primary-hover: #1A6FC2;
  --color-primary-active: #01407C;
  --color-text-primary: #343A40;
  --color-text-secondary: #535353;
  --color-text-dark: #2F2F4D;
  --color-text-placeholder: #A3A5A9;
  --color-text-divider: #979797;
  --color-text-tip: #919191;
  --color-text-copyright: #333333;
  --color-link-forgot: #0154A4;
  --color-bg-white: #FFFFFF;
  --color-bg-panel: #FEFEFE;
  --color-bg-input: #F5F5F5;
  --color-bg-overlay: rgba(0, 0, 0, 0.25);
  --color-error-bg: rgba(221, 56, 0, 0.1);
  --color-error-border: rgba(198, 0, 13, 0.5);
  --color-wechat: #07C160;
  --color-wechat-work: #46A5F3;
  --color-black: #000000;

  /* 字体大小 */
  --font-size-xs: 10px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 30px;

  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 10px;
  --spacing-base: 14px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-xxl: 28px;
  --spacing-xxxl: 30px;
  --spacing-xxxxl: 40px;
  --spacing-xxxxxl: 50px;
  --spacing-xxxxxxl: 60px;
  --spacing-xxxxxxxl: 50px;
  --spacing-xxxxxxxxl: 90px;

  /* 尺寸 */
  --height-input: 40px;
  --height-button: 40px;
  --height-social-btn: 42px;
  --height-error: 32px;
  --border-radius-sm: 6px;
  --border-radius-md: 8px;
  --border-radius-lg: 14px;

  /* 移动端视口高度（由 JavaScript 动态设置） */
  --vh: 100vh;
}

/* ============================================
   基础样式
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  overflow: hidden;
  height: 100%;
  /* 移动端使用动态视口高度，解决地址栏问题 */
  height: 100dvh;
  /* Safari 后备方案 */
  height: -webkit-fill-available;
}


.container {
  height: 100vh;
  /* 移动端使用动态视口高度，解决地址栏问题 */
  height: 100dvh;
  /* Safari 后备方案 */
  height: -webkit-fill-available;
  display: flex;
  position: relative;
  background: var(--color-bg-white);
}

/* 背景图片 */
.bg-image {
  flex: 1;
  height: 100%;
  background-image: url('../img/bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-overlay);
}

/* 左侧装饰元素 */
.decoration-left {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 166px;
  width: 187px;
  height: 388px;
  background-image: url('../img/decoration-left.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* 右侧登录面板和忘记密码面板 - 共享样式 */
.login-panel,
.forgot-password-panel {
  width: 499px;
  height: 100%;
  background: var(--color-bg-panel);
  border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
  flex-shrink: 0;
  padding: var(--spacing-xxxxxxxxl) var(--spacing-xxxxxl) var(--spacing-xxxxl);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

/* Logo 图片区域 */
.logo-image-section {
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-xxxxl);
  justify-content: flex-start;
  align-items: flex-start;
}

.logo-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Logo 区域 */
.logo-section {
  display: flex;
  gap: 0;
  align-items: center;
  flex-direction: column;
  margin-bottom: var(--spacing-xxxxxxxl);
  width: 100%;
  max-width: 361px;
}

.logo-icon {
  width: 58.71px;
  height: 59px;
  background-image: url('../img/logo-icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: var(--spacing-md);
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-main {
  font-family: 'PingFang SC', sans-serif;
  font-weight: 600;
  font-size: var(--font-size-xl);
  line-height: 1.171875em;
  color: var(--color-text-primary);
  margin: 0;
  padding: 0;
  height: 42px;
}

.title-sub {
  font-family: 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-xs);
  line-height: 1.31982421875em;
  color: var(--color-text-primary);
  text-transform: uppercase;
  margin: 0;
  margin-top: 0;
  padding: 0;
  height: 13px;
}

/* 表单容器 */
.login-form {
  width: 100%;
  max-width: 361px;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

/* 表单组 */
.form-group {
  width: 100%;
  margin-bottom: var(--spacing-lg);
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-base);
  line-height: 1.31982421875em;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
  height: 18px;
}

.input-wrapper {
  position: relative;
  width: 100%;
  height: var(--height-input);
}

.form-input {
  width: 100%;
  height: var(--height-input);
  background: var(--color-bg-input);
  border: none;
  border-radius: var(--border-radius-md);
  padding: 0 var(--spacing-base);
  font-family: 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-base);
  line-height: 1.31982421875em;
  color: var(--color-text-secondary);
  outline: none;
}

.form-input::placeholder {
  color: var(--color-text-placeholder);
  opacity: 0.5;
}

.form-input:focus {
  background: var(--color-bg-white);
  border: 1px solid var(--color-primary);
}

/* 密码显示/隐藏按钮 */
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.password-toggle:hover {
  opacity: 1;
}

.password-toggle svg {
  width: 16px;
  height: 16px;
  color: #000000;
  stroke: #000000;
  fill: none;
}

.password-toggle svg circle {
  fill: #000000;
}

/* 错误提示框 */
.error-message {
  width: 100%;
  height: var(--height-error);
  background: var(--color-error-bg);
  border: 1px solid var(--color-error-border);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  padding: 0 8.78px;
  margin-top: var(--spacing-sm);
  margin-bottom: 0;
  gap: var(--spacing-xs);
}

.error-icon {
  width: 15.37px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.error-icon svg {
  width: 14px;
  height: 14px;
}

.error-text {
  font-family: 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-sm);
  line-height: 1.31982421875em;
  color: var(--color-text-dark);
  opacity: 0.85;
  flex: 1;
}

/* 分隔线区域 */
.divider-section {
  width: 100%;
  max-width: 362px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: var(--spacing-xxxxxxl) 0 var(--spacing-xl);
}

.divider-line {
  width: 132px;
  height: 1px;
  background: var(--color-text-divider);
  opacity: 0.3;
}

.divider-text {
  font-family: 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-sm);
  line-height: 1.31982421875em;
  color: var(--color-text-divider);
  padding: 0 var(--spacing-sm);
  flex-shrink: 0;
}

/* 第三方登录按钮 */
.social-login {
  width: 100%;
  max-width: 172px;
  height: var(--height-social-btn);
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-bottom: var(--spacing-xxl);
}

.social-btn {
  width: var(--height-social-btn);
  height: var(--height-social-btn);
  border-radius: 50%;
  border: 1px solid;
  background: var(--color-bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.wechat-btn {
  border-color: var(--color-wechat);
}

.wechatWork-btn {
  border-color: var(--color-wechat-work);
}

.social-icon {
  width: 39px;
  height: 39px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.wechat-icon {
  background-image: url('../img/wechat-icon.svg');
  background-size: 26px 21px;
}

.wechatWork-icon {
  background-image: url('../img/wechatWork-icon.svg');
  background-size: 24px 24px;
}

/* 登录按钮和忘记密码 */
.form-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  margin-top: var(--spacing-xxl);
  margin-bottom: 0;
}

.login-btn {
  width: 100%;
  height: var(--height-button);
  background: var(--color-primary);
  border: none;
  border-radius: var(--border-radius-md);
  font-family: 'PingFang SC', sans-serif;
  font-weight: 500;
  font-size: var(--font-size-md);
  line-height: 1.171875em;
  color: var(--color-bg-white);
  cursor: pointer;
  margin-top: 5px;
  transition: background 0.3s;
}

.login-btn:hover {
  background: var(--color-primary-hover);
}

.login-btn:active {
  background: var(--color-primary-active);
}

.forgot-password {
  font-family: 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-sm);
  line-height: 1.31982421875em;
  color: var(--color-link-forgot);
  text-decoration: none;
  margin-top: 0;
  margin-bottom: 0;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* 安全提示 */
.security-tip {
  width: 100%;
  max-width: 306px;
  font-family: 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-sm);
  line-height: 1.31982421875em;
  color: var(--color-text-tip);
  text-align: center;
  margin: 0 auto 34px;
}

/* 版权信息 */
.copyright {
  width: 100%;
  max-width: 339px;
  font-family: 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-sm);
  line-height: 1.31982421875em;
  color: var(--color-text-copyright);
  opacity: 0.3;
  text-align: center;
  margin: auto auto 0;
}

/* 忘记密码页面 - 样式已合并到 .login-panel */

/* 返回按钮 */
.back-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 15px;
  height: 15px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.back-btn svg {
  width: 15px;
  height: 15px;
}

.back-btn:hover svg path {
  stroke: var(--color-primary);
}

/* 忘记密码内容区域 */
.forgot-password-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

/* 重置密码表单容器 */
#resetPasswordFormContainer {
  width: 100%;
}

.forgot-password-title {
  font-family: 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-md);
  line-height: 1.31982421875em;
  color: var(--color-text-dark);
  margin: 0 0 var(--spacing-xl);
  text-align: center;
}

.forgot-password-desc {
  font-family: 'Microsoft YaHei', sans-serif;
  font-weight: 290;
  font-size: var(--font-size-md);
  line-height: 1.330078125em;
  color: var(--color-text-dark);
  opacity: 0.9;
  margin: 0 0 var(--spacing-xxxxl);
  text-align: center;
}

.forgot-password-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

/* 忘记密码表单中最后一个 form-group 移除底部间距 */
.forgot-password-form .form-group {
  margin-bottom: var(--spacing-lg);
}

.forgot-password-form .form-group:last-of-type {
  margin-bottom: 0;
}

.forgot-password-form .form-actions {
  margin-top: var(--spacing-base);
  align-items: center;
}

.submit-btn {
  width: 100%;
}

/* 成功提示界面 */
.success-message-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xxxxl) 0;
  box-sizing: border-box;
}

.success-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 30px;
  object-fit: contain;
}

.success-title {
  font-family: 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-lg);
  line-height: 1.5em;
  color: var(--color-text-dark);
  margin: 0 0 var(--spacing-lg);
  text-align: center;
}

.success-desc {
  font-family: 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  font-size: var(--font-size-base);
  line-height: 1.5em;
  color: var(--color-text-secondary);
  margin: 0;
  text-align: center;
}

/* 响应式调整 - 移动端 */
@media (max-width: 768px) {
  html {
    font-size: 62.5%; /* 1rem = 10px (基于浏览器默认 16px) */
    height: 100%;
    height: 100dvh;
    height: -webkit-fill-available;
    overflow-x: hidden;
  }

  body {
    height: 100dvh;
    height: -webkit-fill-available;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .container {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    height: -webkit-fill-available;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    box-sizing: border-box;
    margin: 0 auto;
  }

  /* 隐藏背景图片和装饰元素 */
  .bg-image {
    display: none;
  }

  .decoration-left {
    display: none;
  }

  /* 登录面板和忘记密码面板全屏显示 */
  .login-panel,
  .forgot-password-panel {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 2.4rem 2rem 2rem;
    height: 100dvh;
    height: -webkit-fill-available;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    /* 确保内容可以滚动 */
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  /* 调整 Logo 图片 */
  .logo-image-section {
    width: 100%;
    max-width: 100%;
    margin-bottom: 2rem;
    box-sizing: border-box;
  }

  .logo-image {
    max-width: 100%;
    height: auto;
  }

  /* 调整 Logo 区域 */
  .logo-section {
    width: 100%;
    max-width: 100%;
    margin-bottom: 2.4rem;
    box-sizing: border-box;
  }

  /* 移动端字体大小调整 - 增大文字 */
  .title-main {
    font-size: 3.2rem;
  }

  .title-sub {
    font-size: 1.2rem;
  }

  .form-label {
    font-size: var(--font-size-base);
  }

  .form-input {
    font-size: var(--font-size-base);
  }

  .login-btn {
    font-size: var(--font-size-md);
  }

  .error-text {
    font-size: var(--font-size-base);
  }

  .forgot-password {
    font-size: var(--font-size-base);
  }

  /* 调整表单宽度 */
  .login-form,
  .forgot-password-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .input-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-actions {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .login-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 错误提示框 */
  .error-message {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* 调整分隔线 */
  .divider-section {
    width: 100%;
    max-width: 100%;
    margin: 3.2rem 0 1.6rem;
    box-sizing: border-box;
  }

  .divider-line {
    width: 100%;
  }

  /* 调整第三方登录按钮 */
  .social-login {
    width: 100%;
    max-width: 100%;
    gap: 2rem;
    box-sizing: border-box;
  }

  /* 调整安全提示和版权信息 */
  .security-tip {
    width: 100%;
    max-width: 100%;
    font-size: var(--font-size-sm);
    margin-bottom: 2rem;
    box-sizing: border-box;
  }

  .copyright {
    width: 100%;
    max-width: 100%;
    font-size: var(--font-size-sm);
    box-sizing: border-box;
  }

  /* 忘记密码页面移动端样式 - 已合并到上方 */

  .back-btn {
    top: var(--spacing-lg);
    right: var(--spacing-lg);
  }

  .forgot-password-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .forgot-password-form .form-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .forgot-password-form .input-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .forgot-password-form .form-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .forgot-password-form .form-actions {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .forgot-password-title {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
  }

  .forgot-password-desc {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xl);
  }

  /* 成功提示界面移动端样式 */
  .success-message-content {
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-xl) var(--spacing-lg);
    box-sizing: border-box;
  }

  .success-icon {
    width: var(--spacing-xxxxl);
    height: var(--spacing-xxxxl);
    margin-bottom: 2rem;
  }

  .success-title {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
  }

  .success-desc {
    font-size: var(--font-size-base);
  }
}

/* 响应式调整 - 平板端 */
@media (min-width: 769px) and (max-width: 1024px) {
  .login-panel,
  .forgot-password-panel {
    width: 450px;
    padding: 80px 40px 40px;
  }

  .bg-image {
    flex: 1;
  }
}

/* ============================================
   动画效果
   ============================================ */

/* 动画关键帧定义 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}

/* 页面加载动画 */
.container {
  animation: fadeIn 0.6s ease-out;
}

.login-panel,
.forgot-password-panel {
  animation: slideInRight 0.5s ease-out;
}

/* Logo 区域动画 */
.logo-image-section {
  animation: fadeInUp 0.4s ease-out 0.1s both;
}

.logo-section {
  animation: fadeInUp 0.4s ease-out 0.2s both;
}

.logo-icon {
  animation: fadeInUp 0.4s ease-out 0.3s both;
}

.title-main {
  animation: fadeInUp 0.4s ease-out 0.4s both;
}

.title-sub {
  animation: fadeInUp 0.4s ease-out 0.5s both;
}

/* 表单元素进入动画 */
.login-form .form-group:nth-child(1),
.forgot-password-form .form-group:nth-child(1) {
  animation: fadeInUp 0.4s ease-out 0.6s both;
}

.login-form .form-group:nth-child(2),
.forgot-password-form .form-group:nth-child(2) {
  animation: fadeInUp 0.4s ease-out 0.7s both;
}

.login-form .form-group:nth-child(3),
.forgot-password-form .form-group:nth-child(3) {
  animation: fadeInUp 0.4s ease-out 0.8s both;
}

.form-actions {
  animation: fadeInUp 0.4s ease-out 0.9s both;
}

/* 分隔线和第三方登录按钮动画 */
.divider-section {
  animation: fadeInUp 0.3s ease-out 1s both;
}

.social-login {
  animation: fadeInUp 0.3s ease-out 1.1s both;
}

.social-btn:nth-child(1) {
  animation: fadeInUp 0.3s ease-out 1.2s both;
}

.social-btn:nth-child(2) {
  animation: fadeInUp 0.3s ease-out 1.3s both;
}

/* 安全提示和版权信息动画 */
.security-tip {
  animation: fadeInUp 0.3s ease-out 1.4s both;
}

.copyright {
  animation: fadeInUp 0.3s ease-out 1.5s both;
}

/* 增强输入框焦点动画 */
.form-input {
  transition: background 0.2s ease-out, border 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out;
}

.form-input:focus {
  background: var(--color-bg-white);
  border: 1px solid var(--color-primary);
  box-shadow: 0 0 0 3px rgba(231, 73, 84, 0.1);
  transform: translateY(-1px);
}

.form-input:hover:not(:focus) {
  background: #fafafa;
  transition: background 0.2s ease-out;
}

/* 增强按钮动画 */
.login-btn {
  transition: background 0.3s ease-out, transform 0.2s ease-out, box-shadow 0.2s ease-out;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 1s ease-out, height 1s ease-out;
  pointer-events: none;
}

.login-btn:hover::before {
  width: 1000px;
  height: 1000px;
}

.login-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 73, 84, 0.3);
}

.login-btn:active {
  background: var(--color-primary-active);
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(231, 73, 84, 0.2);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 密码切换按钮动画 */
.password-toggle {
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.password-toggle:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.password-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

/* 验证码刷新按钮动画 */
#forgotCaptchaRefresh:hover svg {
  animation: rotate 0.4s ease-out;
}

/* 错误提示动画 */
.error-message {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.error-message[style*="display: flex"],
.error-message[style*="display: block"] {
  animation: slideInDown 0.3s ease-out;
}

.error-icon {
  animation: pulse 0.5s ease-out;
}

/* 错误提示震动效果 */
.error-message.shake {
  animation: shake 0.5s ease-out;
}

/* 成功提示动画 */
.success-message-content {
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.success-message-content[style*="display: flex"],
.success-message-content[style*="display: block"] {
  animation: scaleIn 0.4s ease-out;
}

.success-icon {
  animation: scaleIn 0.5s ease-out 0.1s both, pulse 0.6s ease-out 0.6s;
}

.success-title {
  animation: fadeInUp 0.4s ease-out 0.2s both;
}

.success-desc {
  animation: fadeInUp 0.4s ease-out 0.3s both;
}

/* 表单切换动画（忘记密码页面） */
.forgot-password-content {
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* 表单进入动画类（通过 JavaScript 添加） */
.forgot-password-content.animate-in {
  animation: fadeInUp 0.4s ease-out;
}

/* 表单退出动画类（通过 JavaScript 添加） */
.forgot-password-content.animate-out {
  animation: fadeInDown 0.4s ease-out reverse;
}

/* Logo 显示/隐藏动画 */
#forgotPasswordLogoSection {
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Logo 淡入动画类 */
#forgotPasswordLogoSection.fade-in {
  animation: fadeInUp 0.3s ease-out;
}

/* Logo 淡出动画类 */
#forgotPasswordLogoSection.fade-out {
  animation: fadeInDown 0.3s ease-out reverse;
}

/* 背景装饰动画 */
.decoration-left {
  animation: float 3s ease-in-out infinite;
}

/* 忘记密码标题和描述动画 */
.forgot-password-title {
  animation: fadeInUp 0.4s ease-out 0.1s both;
}

.forgot-password-desc {
  animation: fadeInUp 0.4s ease-out 0.2s both;
}

/* 第三方登录按钮悬停动画 */
.social-btn {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.social-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 微信登录按钮特殊效果 */
.wechat-btn:hover {
  background: rgba(7, 193, 96, 0.1);
}

.wechatWork-btn:hover {
  background: rgba(70, 165, 243, 0.1);
}

/* 忘记密码链接动画 */
.forgot-password {
  transition: color 0.2s ease-out, transform 0.2s ease-out;
}

.forgot-password:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

/* 响应式：减少动画（移动端） */
@media (max-width: 768px) {
  .container,
  .bg-image,
  .login-panel,
  .forgot-password-panel,
  .logo-section,
  .form-group,
  .form-actions,
  .divider-section,
  .social-login,
  .security-tip,
  .copyright {
    animation-duration: 0.3s !important;
    animation-delay: 0s !important;
  }

  .decoration-left,
  .bg-image {
    animation: none;
  }
}

/* 尊重用户的动画偏好设置 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}