/* 2FA Modal Enhanced Styles */

/* 自定义SweetAlert2样式 */
.swal2-container-2fa,
.swal2-container-2fa-backup {
  backdrop-filter: blur(10px);
  background-color: rgba(15, 23, 42, 0.8) !important;
}

.swal2-popup-2fa,
.swal2-popup-2fa-backup {
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%) !important;
  border: 1px solid rgba(71, 85, 105, 0.3) !important;
  border-radius: 24px !important;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  padding: 2rem !important;
  max-width: 420px !important;
  margin: 0 1rem !important;
}

/* 按钮样式优化 */
.swal2-confirm-2fa,
.swal2-confirm-2fa-backup {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  box-shadow: 
    0 4px 14px 0 rgba(5, 150, 105, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.swal2-confirm-2fa:hover,
.swal2-confirm-2fa-backup:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 
    0 6px 20px 0 rgba(5, 150, 105, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.swal2-cancel-2fa,
.swal2-cancel-2fa-backup {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  box-shadow: 
    0 4px 14px 0 rgba(107, 114, 128, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.swal2-cancel-2fa:hover,
.swal2-cancel-2fa-backup:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 
    0 6px 20px 0 rgba(107, 114, 128, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* 备用代码按钮特殊样式 */
.swal2-confirm-2fa-backup {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  box-shadow: 
    0 4px 14px 0 rgba(245, 158, 11, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.swal2-confirm-2fa-backup:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  box-shadow: 
    0 6px 20px 0 rgba(245, 158, 11, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

/* 按钮容器间距 */
.swal2-actions {
  gap: 16px !important;
  margin-top: 32px !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .swal2-popup-2fa,
  .swal2-popup-2fa-backup {
    margin: 0 0.5rem !important;
    padding: 1.5rem !important;
  }
  
  .swal2-actions {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .swal2-confirm-2fa,
  .swal2-confirm-2fa-backup,
  .swal2-cancel-2fa,
  .swal2-cancel-2fa-backup {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* 输入框聚焦动画 */
@keyframes inputFocus {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* 图标旋转动画 */
@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* 添加一些微妙的动画效果 */
.swal2-popup-2fa .fas,
.swal2-popup-2fa-backup .fas {
  animation: iconPulse 2s ease-in-out infinite;
}

/* 加载状态优化 */
.swal2-loader {
  border-color: transparent #3b82f6 transparent #3b82f6 !important;
}